Documentation
¶
Index ¶
- Variables
- func SecretShortNames(list []KVValue) []string
- type CatchAllClient
- type CatchAllFlexibleKVValue
- func (*CatchAllFlexibleKVValue) GetFullName() string
- func (*CatchAllFlexibleKVValue) GetLabels() map[string]string
- func (*CatchAllFlexibleKVValue) GetShortName() string
- func (*CatchAllFlexibleKVValue) GetValue() ([]byte, error)
- func (*CatchAllFlexibleKVValue) SetLabels(labels map[string]string) error
- func (*CatchAllFlexibleKVValue) SetValue([]byte) (string, error)
- type KVClient
- type KVValue
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoVersions = errors.New("no versions")
ErrNoVersions means the secret exists but it has no enabled versions
Functions ¶
func SecretShortNames ¶
SecretShortNames reduces a list of KVValues to a list of short names
Types ¶
type CatchAllClient ¶
type CatchAllClient struct{}
CatchAllClient -
func (*CatchAllClient) ListKeys ¶
func (*CatchAllClient) ListKeys() ([]KVValue, error)
type CatchAllFlexibleKVValue ¶
type CatchAllFlexibleKVValue struct{}
CatchAllFlexibleKVValue -
func (*CatchAllFlexibleKVValue) GetFullName ¶
func (*CatchAllFlexibleKVValue) GetFullName() string
func (*CatchAllFlexibleKVValue) GetLabels ¶
func (*CatchAllFlexibleKVValue) GetLabels() map[string]string
func (*CatchAllFlexibleKVValue) GetShortName ¶
func (*CatchAllFlexibleKVValue) GetShortName() string
func (*CatchAllFlexibleKVValue) GetValue ¶
func (*CatchAllFlexibleKVValue) GetValue() ([]byte, error)
type KVClient ¶
type KVClient interface { ListKeys() ([]KVValue, error) Get(name string) (KVValue, error) New(name string, labels map[string]string) (KVValue, error) }
KVClient is a generic interface implemented by SecretManager and a mock
func NewInMemoryClient ¶
NewInMemoryClient creates a handy stand-in for Secret Manager (for example for mocking)
func NewOfflineClient ¶
NewOfflineClient returns an "offline" implementation that uses a dot-env format input
Directories
¶
Path | Synopsis |
---|---|
Singleflight is a small wrapper around KVClient that prevents concurrent requests on the same entities.
|
Singleflight is a small wrapper around KVClient that prevents concurrent requests on the same entities. |
Click to show internal directories.
Click to hide internal directories.