Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSecretWatcher ¶
func NewSecretWatcher(secretClient dependencies.SecretStorage) (*secretWatcher, error)
Types ¶
type Interface ¶
type Interface interface {
Run(<-chan struct{})
TrackSecrets(secretRefs []string)
// secrets are pushed here whenever they are read
Secrets() <-chan SecretMap
// should show valid if the most recent update passed, otherwise a useful error
Error() <-chan error
}
Interface is responsible for watching secrets referenced by a config
type SecretMap ¶
type SecretMap map[string]*dependencies.Secret
Click to show internal directories.
Click to hide internal directories.