Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Default Config Manager
DefaultConfig, _ = NewConfig()
)
Functions ¶
Types ¶
type Config ¶
type Config interface { // provide the reader.Values interface reader.Values // Init the config Init(opts ...Option) error // Options in the config Options() Options // Stop the config loader/watcher Close() error // Load config sources Load(source ...source.Source) error // Force a source changeset sync Sync() error // Watch a value for changes Watch(path ...string) (Watcher, error) }
Config is an interface abstraction for dynamic configuration
type Option ¶
type Option func(o *Options)
func WithLoader ¶
WithLoader sets the loader for manager config
func WithSource ¶
WithSource appends a source to list of sources
Directories ¶
Path | Synopsis |
---|---|
Package loader manages loading from multiple sources
|
Package loader manages loading from multiple sources |
Package secrets is an interface for encrypting and decrypting secrets
|
Package secrets is an interface for encrypting and decrypting secrets |
box
Package box is an asymmetric implementation of config/secrets using nacl/box
|
Package box is an asymmetric implementation of config/secrets using nacl/box |
secretbox
Package secretbox is a config/secrets implementation that uses nacl/secretbox to do symmetric encryption / verification
|
Package secretbox is a config/secrets implementation that uses nacl/secretbox to do symmetric encryption / verification |
file
Package file is a file source.
|
Package file is a file source. |
memory
Package memory is a memory source
|
Package memory is a memory source |
Click to show internal directories.
Click to hide internal directories.