Documentation ¶
Overview ¶
Package configuration defines the Source interface as the main access point to O² Configuration backends. Consul and YAML backends are also provided.
Index ¶
- type Array
- type ConsulSource
- func (cc *ConsulSource) Exists(key string) (exists bool, err error)
- func (cc *ConsulSource) Get(key string) (value string, err error)
- func (cc *ConsulSource) GetNextUInt64(key string) (value uint64, err error)
- func (cc *ConsulSource) GetRecursive(key string) (value Item, err error)
- func (cc *ConsulSource) GetRecursiveYaml(key string) (value []byte, err error)
- func (cc *ConsulSource) Put(key string, value string) (err error)
- func (cc *ConsulSource) PutRecursive(string, Item) error
- func (cc *ConsulSource) PutRecursiveYaml(string, []byte) error
- type Item
- type ItemType
- type Map
- type ROSource
- type Source
- type String
- type YamlSource
- func (yc *YamlSource) Exists(key string) (exists bool, err error)
- func (yc *YamlSource) Get(key string) (value string, err error)
- func (yc *YamlSource) GetRecursive(key string) (value Item, err error)
- func (yc *YamlSource) GetRecursiveYaml(key string) (value []byte, err error)
- func (yc *YamlSource) Put(key string, value string) (err error)
- func (yc *YamlSource) PutRecursive(key string, value Item) (err error)
- func (yc *YamlSource) PutRecursiveYaml(key string, value []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulSource ¶ added in v0.7.0
type ConsulSource struct {
// contains filtered or unexported fields
}
func (*ConsulSource) Exists ¶ added in v0.7.0
func (cc *ConsulSource) Exists(key string) (exists bool, err error)
func (*ConsulSource) Get ¶ added in v0.7.0
func (cc *ConsulSource) Get(key string) (value string, err error)
func (*ConsulSource) GetNextUInt64 ¶ added in v0.7.1
func (cc *ConsulSource) GetNextUInt64(key string) (value uint64, err error)
func (*ConsulSource) GetRecursive ¶ added in v0.7.0
func (cc *ConsulSource) GetRecursive(key string) (value Item, err error)
func (*ConsulSource) GetRecursiveYaml ¶ added in v0.7.0
func (cc *ConsulSource) GetRecursiveYaml(key string) (value []byte, err error)
func (*ConsulSource) Put ¶ added in v0.7.0
func (cc *ConsulSource) Put(key string, value string) (err error)
func (*ConsulSource) PutRecursive ¶ added in v0.7.0
func (cc *ConsulSource) PutRecursive(string, Item) error
func (*ConsulSource) PutRecursiveYaml ¶ added in v0.7.0
func (cc *ConsulSource) PutRecursiveYaml(string, []byte) error
type Source ¶ added in v0.7.0
type YamlSource ¶ added in v0.7.0
type YamlSource struct {
// contains filtered or unexported fields
}
func (*YamlSource) Exists ¶ added in v0.7.0
func (yc *YamlSource) Exists(key string) (exists bool, err error)
func (*YamlSource) Get ¶ added in v0.7.0
func (yc *YamlSource) Get(key string) (value string, err error)
func (*YamlSource) GetRecursive ¶ added in v0.7.0
func (yc *YamlSource) GetRecursive(key string) (value Item, err error)
func (*YamlSource) GetRecursiveYaml ¶ added in v0.7.0
func (yc *YamlSource) GetRecursiveYaml(key string) (value []byte, err error)
func (*YamlSource) Put ¶ added in v0.7.0
func (yc *YamlSource) Put(key string, value string) (err error)
func (*YamlSource) PutRecursive ¶ added in v0.7.0
func (yc *YamlSource) PutRecursive(key string, value Item) (err error)
func (*YamlSource) PutRecursiveYaml ¶ added in v0.7.0
func (yc *YamlSource) PutRecursiveYaml(key string, value []byte) (err error)
Click to show internal directories.
Click to hide internal directories.