Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶ added in v0.0.3
type Manager interface {
Get(ctx context.Context, key string) ([]byte, error)
Set(ctx context.Context, key string, value []byte) error
Watch(ctx context.Context, key string) <-chan *Response
}
Manager A ConfigManager retrieves and decrypts configuration from a key/value store.
func NewConfigManager ¶
func NewConfigManagerWithStore ¶ added in v0.0.3
func NewConfigManagerWithStore(store backend.Store, opts ...OptionFunc) (Manager, error)
type OptionFunc ¶ added in v0.0.3
type OptionFunc func(c *configManager)
func WithSecretKey ¶ added in v0.0.3
func WithSecretKey(secret []byte) OptionFunc
Click to show internal directories.
Click to hide internal directories.