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 NewEtcdv3ConfigManager(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)
- func NewStandardEtcdv3ConfigManager(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 NewEtcdv3ConfigManager ¶
func NewEtcdv3ConfigManager(machines []string, keystore io.Reader) (ConfigManager, error)
NewEtcdv3ConfigManager returns a new ConfigManager backed by etcdv3. Data will be encrypted.
func NewStandardConfigManager ¶
func NewStandardConfigManager(client backend.Store) (ConfigManager, error)
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.
func NewStandardEtcdv3ConfigManager ¶
func NewStandardEtcdv3ConfigManager(machines []string) (ConfigManager, error)
NewStandardEtcdv3ConfigManager returns a new ConfigManager backed by etcd.
Click to show internal directories.
Click to hide internal directories.