Commit Graph

10 Commits

Author SHA1 Message Date
Nic Cope 0c7b1eb549 Bump golangci-lint, copy config from c/c
This copies the latest config from c/c and addresses all the linter
errors that config produces.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-02-20 03:45:27 -08:00
Philippe Scorsolini 511b39fa56
chore: address issues reported by revive
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
2023-04-05 12:03:27 +02:00
Nic Cope f0fcbc0af5 Update linter config to match c/c
This repo is a little out of date relative to our latest linting
practices.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-01-25 10:32:46 -08:00
Aditya Sharma cd68866501 Fix lints
Signed-off-by: Aditya Sharma <git@adi.run>
2022-07-21 22:01:32 -07:00
Nic Cope af4e148a11 Replace github.com/pkg/errors with our own pkg/errors.
Signed-off-by: Nic Cope <negz@rk0n.org>
2021-09-09 07:50:57 +00:00
hasheddan 89f6952f68
Add common credentials extractors
Adds helper methods for common credential sources as well as an
aggregate extraction function that can be included in a larger switch
statement for custom credential sources.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2021-02-01 16:11:47 -06:00
hasheddan 0b27607592
Update core/v1alpha1 imports to common/v1
Updates all core/v1alpha1 imports to the common/v1, which is the new
home of these embedded API types.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-11-19 20:03:48 -06:00
Nic Cope 47591b4556 Add a resource.Tracker interface
I was originally thinking this wouldn't be useful, but I'm starting to find some
places it could help with testing. It may also help switch out implementations
in future.

Signed-off-by: Nic Cope <negz@rk0n.org>
2020-10-01 16:35:40 -07:00
Nic Cope 2e97ada425 Rename UsageTracker to ProviderConfigUsageTracker
This name is a clearer to consumers than resource.UsageTracker.

Signed-off-by: Nic Cope <negz@rk0n.org>
2020-10-01 02:40:26 -07:00
Nic Cope be1324de71 Add a utility to track ProviderConfig usages
Signed-off-by: Nic Cope <negz@rk0n.org>
2020-10-01 02:33:12 -07:00