Documentation ¶
Index ¶
- func DisableEnvOverride() func(*LoadConfigOptions)
- func EnvGetter(envGetter envigo.EnvGetter) func(*LoadConfigOptions)
- func EnvPrefix(envPrefix string) func(*LoadConfigOptions)
- func LoadConfig(configFile string, config interface{}, optFuncs ...func(*LoadConfigOptions)) (err error)
- func LoadConfigBytes(configFileBytes []byte, config interface{}, ...) (err error)
- func LoadConfigFile(configFile string, config interface{}) (err error)
- func OverrideConfigBytes(configBytes []byte) func(*LoadConfigOptions)
- func OverrideConfigFile(configFile string) func(*LoadConfigOptions)
- func YAMLKeepRootKeys(b []byte, keys ...string) []byte
- func YAMLPatchBytes(patch func(b []byte) []byte) func(*LoadConfigOptions)
- func YAMLRemoveRootKeys(b []byte, keys ...string) []byte
- func YAMLValidateKeys(validate bool) func(*LoadConfigOptions)
- type LoadConfigOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableEnvOverride ¶
func DisableEnvOverride() func(*LoadConfigOptions)
func EnvGetter ¶
func EnvGetter(envGetter envigo.EnvGetter) func(*LoadConfigOptions)
func EnvPrefix ¶
func EnvPrefix(envPrefix string) func(*LoadConfigOptions)
func LoadConfig ¶
func LoadConfig(configFile string, config interface{}, optFuncs ...func(*LoadConfigOptions)) (err error)
func LoadConfigBytes ¶
func LoadConfigBytes(configFileBytes []byte, config interface{}, optFuncs ...func(*LoadConfigOptions)) (err error)
func LoadConfigFile ¶
func OverrideConfigBytes ¶
func OverrideConfigBytes(configBytes []byte) func(*LoadConfigOptions)
func OverrideConfigFile ¶
func OverrideConfigFile(configFile string) func(*LoadConfigOptions)
func YAMLKeepRootKeys ¶
func YAMLPatchBytes ¶
func YAMLPatchBytes(patch func(b []byte) []byte) func(*LoadConfigOptions)
func YAMLRemoveRootKeys ¶
func YAMLValidateKeys ¶
func YAMLValidateKeys(validate bool) func(*LoadConfigOptions)
Types ¶
Click to show internal directories.
Click to hide internal directories.