Documentation ¶
Index ¶
- Constants
- func DecodeConfigFormat(data []map[string]string) (map[string]string, error)
- func EncodeConfigFormat(key, value string) map[string]string
- func GenConfigMapName(appName, serviceName, configName string) string
- func ToConfigMap(s Store, name, envName string, configData map[string]string) (*v1.ConfigMap, error)
- type Configmap
- type Fake
- type Local
- type Store
Constants ¶
View Source
const ( // Splitter is a splitter for configmap name generation Splitter = "-" // TypeConfigMap defines the type of Configmap TypeConfigMap = "configmap" )
View Source
const TypeFake = "fake"
TypeFake is a fake type
View Source
const TypeLocal = "local"
TypeLocal defines the local config store type
Variables ¶
This section is empty.
Functions ¶
func DecodeConfigFormat ¶
DecodeConfigFormat will decode config{name: key, value: value} format to key-value mode.
func EncodeConfigFormat ¶
EncodeConfigFormat will encode key-value to config{name: key, value: value} format
func GenConfigMapName ¶
GenConfigMapName is a fixed way to name the configmap name for appfile config
Types ¶
type Configmap ¶
Configmap is the configmap implementation of config store
func (*Configmap) GetConfigData ¶
GetConfigData will get config data from configmap
type Fake ¶
Fake is a fake implementation of config store, help for test
func (*Fake) GetConfigData ¶
GetConfigData get data
Click to show internal directories.
Click to hide internal directories.