Documentation ¶
Index ¶
- type ConfigManager
- func NewConsulConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)
- func NewEtcdConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)
- func NewStandardConsulConfigManager(machines []string) (ConfigManager, error)
- func NewStandardEtcdConfigManager(machines []string) (ConfigManager, error)
- 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) Watch(key string, stop chan bool) <-chan *Response }
A ConfigManager retrieves and decrypts configuration from a key/value store.
func NewConsulConfigManager ¶
func NewConsulConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)
NewConsulConfigManager returns a new ConfigManager backed by consul.
func NewEtcdConfigManager ¶
func NewEtcdConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)
NewEtcdConfigManager returns a new ConfigManager backed by etcd. Data will be encrypted.
func NewStandardConsulConfigManager ¶ added in v0.0.2
func NewStandardConsulConfigManager(machines []string) (ConfigManager, error)
NewStandardConsulConfigManager returns a new ConfigManager backed by consul.
func NewStandardEtcdConfigManager ¶ added in v0.0.2
func NewStandardEtcdConfigManager(machines []string) (ConfigManager, error)
NewStandardEtcdConfigManager returns a new ConfigManager backed by etcd.
Click to show internal directories.
Click to hide internal directories.