Documentation ¶
Overview ¶
Package store is only used in the internal implement of manager, not a public api.
Index ¶
- type ConfigStore
- func (c *ConfigStore) Get(key string) (*metadata.ConfigureValue, error)
- func (c *ConfigStore) GetAnyType(key string) (interface{}, error)
- func (c *ConfigStore) Load() error
- func (c *ConfigStore) Save() error
- func (c *ConfigStore) Set(key string, value metadata.ConfigureValue) error
- func (c *ConfigStore) Update(cfgMap map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigStore ¶
type ConfigStore struct {
// contains filtered or unexported fields
}
ConfigStore - the config data store
func NewConfigStore ¶
func NewConfigStore(cfgDriver driver.Driver) *ConfigStore
NewConfigStore create config store
func (*ConfigStore) Get ¶
func (c *ConfigStore) Get(key string) (*metadata.ConfigureValue, error)
Get - Get config data from current store
func (*ConfigStore) GetAnyType ¶
func (c *ConfigStore) GetAnyType(key string) (interface{}, error)
GetAnyType get interface{} type for config items
func (*ConfigStore) Load ¶
func (c *ConfigStore) Load() error
Load - Load data from driver, all user config in the store will be refreshed
func (*ConfigStore) Set ¶
func (c *ConfigStore) Set(key string, value metadata.ConfigureValue) error
Set - Set configure value in store, not saved to config driver
func (*ConfigStore) Update ¶
func (c *ConfigStore) Update(cfgMap map[string]interface{}) error
Update - Only update specified settings in cfgMap in store and driver
Click to show internal directories.
Click to hide internal directories.