Documentation
¶
Overview ¶
Package envsource is a configuration source that loads environment variables.
Package envsource is a configuration source that loads environment variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromOptions ¶
FromOptions extracts the environment variable prefix from the configuration options Parameter options: Point to options. Options, which contains configuration options Return value: String slice containing the environment variable prefix set in the configuration
func NewEnvSource ¶
func NewEnvSource(sourceCfg *sourcev1.SourceConfig, opts ...options.Option) (runtimeconfig.KSource, error)
func WithPrefixes ¶
WithPrefixes creates an option to set the environment variable prefix Parameter prefixes: One or more string prefixes by which environment variables will be filtered Return value: Returns a options. Option function, which applies the prefix configuration to the configuration options
Types ¶
This section is empty.