Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrEmptyConfigItem = errors.New("empty config item") ErrConflictConfigItemType = errors.New("type of the config item conflicts between saved and registered") ErrEmptyConfigItemKey = errors.New("empty config item key") ErrEmptyConfigItemValue = errors.New("empty config item value") ErrUnsupportedConfigItem = errors.New("unsupported config item") ErrEmptyBackendName = errors.New("backend name should not be empty") ErrInvalidBackendNameCurrent = errors.New("backend name should not be current") )
var ( ErrNotExistCurrentBackend = errors.New("cannot assign current to not exist backend") ErrUnsetDefaultCurrentBackend = errors.New("cannot unset default current backend") ErrInUseCurrentBackend = errors.New("unset in-use current backend") ErrUnsupportedBackendType = errors.New("unsupported backend type") ErrNonEmptyBackendConfigItems = errors.New("non-empty backend config items") ErrEmptyBackendType = errors.New("empty backend type") ErrConflictBackendType = errors.New("conflict backend type") ErrInvalidBackNameDefault = errors.New("backend name should not be default") )
Functions ¶
func DeleteConfigItem ¶
DeleteConfigItem deletes the config item in the config file, where the key is the corresponding config YAML keys connected by dot. The validation of the config is not checked.
func GetConfig ¶
GetConfig returns the structured config stored in the config file. The validation of the config is not checked.
func GetEncodedConfigItem ¶
GetEncodedConfigItem gets the value of config item after encoding from the config file, where the key is the corresponding config YAML keys connected by dot. The validation of the config is not checked.
func SetEncodedConfigItem ¶
SetEncodedConfigItem sets the config item with the encoded value in the config file, where the key is the corresponding config YAML keys connected by dot. The validation of the config is checked.
Types ¶
This section is empty.