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