Documentation ¶
Index ¶
- func Convert2JavaProps(p string, content []byte) (map[string]interface{}, error)
- func Convert2configMap(p string, content []byte) (map[string]interface{}, error)
- func ExpandValueEnv(value string) (realValue string)
- func UseFileNameAsKeyContentAsValue(p string, content []byte) (map[string]interface{}, error)
- type FileHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert2JavaProps ¶
Convert2JavaProps is a FileHandler it convert the yaml content into java props
func Convert2configMap ¶
Convert2configMap is legacy API
func ExpandValueEnv ¶ added in v1.3.0
if string like ${NAME||archaius} will query environment variable for ${NAME} if environment variable is "" return default string `archaius` support multi variable, eg:
value string => addr:${IP||127.0.0.1}:${PORT||8080} if environment variable => IP=0.0.0.0 PORT=443 , result => addr:0.0.0.0:443 if no exist environment variable , result => addr:127.0.0.1:8080
Types ¶
Click to show internal directories.
Click to hide internal directories.