Documentation ¶
Index ¶
- type ConfigManager
- func NewConfigManager(client backend.Store, keystore io.Reader) (ConfigManager, error)
- func NewConsulConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)
- func NewEtcdConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)
- func NewStandardConfigManager(client backend.Store) (ConfigManager, error)
- func NewStandardConsulConfigManager(machines []string) (ConfigManager, error)
- func NewStandardEtcdConfigManager(machines []string) (ConfigManager, error)
- type KVPair
- type KVPairs
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigManager ¶
type ConfigManager interface { Get(key string) ([]byte, error) List(key string) (KVPairs, error) Set(key string, value []byte) error Watch(key string, stop chan bool) <-chan *Response }
A ConfigManager retrieves and decrypts configuration from a key/value store.
func NewConfigManager ¶
func NewConsulConfigManager ¶
func NewConsulConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)
NewConsulConfigManager returns a new ConfigManager backed by consul. Data will be encrypted.
func NewEtcdConfigManager ¶
func NewEtcdConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)
NewEtcdConfigManager returns a new ConfigManager backed by etcd. Data will be encrypted.
func NewStandardConfigManager ¶
func NewStandardConfigManager(client backend.Store) (ConfigManager, error)
func NewStandardConsulConfigManager ¶
func NewStandardConsulConfigManager(machines []string) (ConfigManager, error)
NewStandardConsulConfigManager returns a new ConfigManager backed by consul.
func NewStandardEtcdConfigManager ¶
func NewStandardEtcdConfigManager(machines []string) (ConfigManager, error)
NewStandardEtcdConfigManager returns a new ConfigManager backed by etcd.
Click to show internal directories.
Click to hide internal directories.