store

package
Version: v1.8.2-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package store is only used in the internal implement of manager, not a public api.

Index

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

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) Save

func (c *ConfigStore) Save() 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

func (*ConfigStore) Update

func (c *ConfigStore) Update(cfgMap map[string]interface{}) error

Update - Only update specified settings in cfgMap in store and driver

Source Files

Directories

Path Synopsis
Package driver provide the implementation of config driver used in CfgManager
Package driver provide the implementation of config driver used in CfgManager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL