Documentation ¶
Index ¶
- type KVStore
- func (kvs KVStore) Get(key string) interface{}
- func (kvs KVStore) GetBool(key string) bool
- func (kvs KVStore) GetCheck(key string) (interface{}, bool)
- func (kvs KVStore) GetDuration(key string) time.Duration
- func (kvs KVStore) GetFloat64(key string) float64
- func (kvs KVStore) GetInt(key string) int
- func (kvs KVStore) GetInt32(key string) int32
- func (kvs KVStore) GetInt64(key string) int64
- func (kvs KVStore) GetIntSlice(key string) []int
- func (kvs KVStore) GetString(key string) string
- func (kvs KVStore) GetStringMap(key string) map[string]interface{}
- func (kvs KVStore) GetStringMapString(key string) map[string]string
- func (kvs KVStore) GetStringMapStringSlice(key string) map[string][]string
- func (kvs KVStore) GetStringSlice(key string) []string
- func (kvs KVStore) GetTime(key string) time.Time
- func (kvs KVStore) GetUint(key string) uint
- func (kvs KVStore) GetUint32(key string) uint32
- func (kvs KVStore) GetUint64(key string) uint64
- func (kvs KVStore) MapStructure(key string, v interface{}) error
- func (kvs KVStore) Set(key string, val interface{}) interface{}
- func (kvs KVStore) SetFromJSON(key string, data []byte) error
- type StateStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVStore ¶
type KVStore map[string]interface{}
KVStore a key value store for arbitrary data. It provides methods to get and set values by type.
func (KVStore) Get ¶
Get retrieves a value by its key as an interface which can be cast to any other value
func (KVStore) GetCheck ¶
GetCheck retrieves a value by its key as an interface which can be cast to any other value
func (KVStore) GetDuration ¶
GetDuration retrieves a value by its key as duration
func (KVStore) GetFloat64 ¶
GetFloat64 retrieves a value by its key as float 64
func (KVStore) GetIntSlice ¶
GetIntSlice retrieves a value by its key as int slice
func (KVStore) GetStringMap ¶
GetStringMap retrieves a value by its key as string map
func (KVStore) GetStringMapString ¶
GetStringMapString retrieves a value by its key as string map string
func (KVStore) GetStringMapStringSlice ¶
GetStringMapStringSlice retrieves a value by its key as string map string slice
func (KVStore) GetStringSlice ¶
GetStringSlice retrieves a value by its key as string slice
func (KVStore) MapStructure ¶
MapStructure maps the value of a key to a pointer to an arbitrary struct This will raise an error if the value v is not a pointer
type StateStore ¶
StateStore a generic data container for buildable target state
func NewStateStore ¶
func NewStateStore() *StateStore
NewStateStore initializes an empty state store