Documentation ¶
Overview ¶
Package configmap provides an abstraction for reading and writing config
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Getter ¶
type Getter interface { // Get should get an item with the key passed in and return // the value. If the item is found then it should return true, // otherwise false. Get(key string) (value string, ok bool) }
Getter provides an interface to get config items
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map provides a wrapper around multiple Setter and Getter interfaces.
func (*Map) AddOverrideGetter ¶ added in v1.55.0
AddOverrideGetter appends a getter onto the end of the getters
It also appends it onto the override getters for GetOverride
func (*Map) Get ¶
Get gets an item with the key passed in and return the value from the first getter. If the item is found then it returns true, otherwise false.
func (*Map) GetOverride ¶ added in v1.55.0
GetOverride gets an item with the key passed in and return the value from the first override getter. If the item is found then it returns true, otherwise false.
type Setter ¶
type Setter interface { // Set should set an item into persistent config store. Set(key, value string) }
Setter provides an interface to set config items