secretwatcher

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL