Documentation ¶
Index ¶
- Constants
- func ConvertMapInToString(config *orderedmap.OrderedMap) string
- func ConvertStringInToMap(configString string, separators []string) (configData *orderedmap.OrderedMap)
- func MergeAndOverWriteMap(config *orderedmap.OrderedMap, incomingConfig *orderedmap.OrderedMap) *orderedmap.OrderedMap
- type CustomConfigGenerator
- type ValueGenerator
Constants ¶
View Source
const CustomConfigBlockDivider = "#________******kubedb.com/inline-config******________#"
Variables ¶
This section is empty.
Functions ¶
func ConvertMapInToString ¶
func ConvertMapInToString(config *orderedmap.OrderedMap) string
func ConvertStringInToMap ¶
func ConvertStringInToMap(configString string, separators []string) (configData *orderedmap.OrderedMap)
func MergeAndOverWriteMap ¶
func MergeAndOverWriteMap(config *orderedmap.OrderedMap, incomingConfig *orderedmap.OrderedMap) *orderedmap.OrderedMap
Types ¶
type CustomConfigGenerator ¶
type CustomConfigGenerator struct { CurrentConfig string // current config string RequestedConfig string // the requested change that comes from inline custom config ConfigBlockDivider string // This is the divider String between default custom config and inline config KeyValueSeparators []string // KeyValueSeparators is the array with which character a key and value can be separated. for example: a=b. here key `a` and value `b` Separator is '='. This array must need to have one or more value }
func (*CustomConfigGenerator) GetMergedConfigString ¶
func (generator *CustomConfigGenerator) GetMergedConfigString() (string, error)
GetMergedConfigString func return new config string where the current config string and requested config strings are merged
type ValueGenerator ¶
Click to show internal directories.
Click to hide internal directories.