Documentation ¶
Index ¶
- func NewDefaultMapProvider(configFileName string, properties []string) config.MapProvider
- func NewExpandMapProvider(base config.MapProvider) config.MapProvider
- func NewFileMapProvider(fileName string) config.MapProvider
- func NewInMemoryMapProvider(buf io.Reader) config.MapProvider
- func NewMergeMapProvider(ps ...config.MapProvider) config.MapProvider
- func NewPropertiesMapProvider(properties []string) config.MapProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultMapProvider ¶ added in v0.37.0
func NewDefaultMapProvider(configFileName string, properties []string) config.MapProvider
NewDefaultMapProvider returns the default config.MapProvider, and it creates configuration from a file defined by the given configFile and overwrites fields using properties.
func NewExpandMapProvider ¶ added in v0.37.0
func NewExpandMapProvider(base config.MapProvider) config.MapProvider
NewExpandMapProvider returns a config.MapProvider, that expands all environment variables for a config.Map provided by the given config.MapProvider.
func NewFileMapProvider ¶ added in v0.37.0
func NewFileMapProvider(fileName string) config.MapProvider
NewFileMapProvider returns a new config.MapProvider that reads the configuration from the given file.
func NewInMemoryMapProvider ¶ added in v0.37.0
func NewInMemoryMapProvider(buf io.Reader) config.MapProvider
NewInMemoryMapProvider returns a new config.MapProvider that reads the configuration, from the provided buffer, as YAML.
func NewMergeMapProvider ¶ added in v0.37.0
func NewMergeMapProvider(ps ...config.MapProvider) config.MapProvider
NewMergeMapProvider returns a config.MapProvider, that merges the result from multiple config.MapProvider.
The ConfigMaps are merged in the given order, by merging all of them in order into an initial empty map.
func NewPropertiesMapProvider ¶ added in v0.37.0
func NewPropertiesMapProvider(properties []string) config.MapProvider
NewPropertiesMapProvider returns a config.MapProvider, that provides a config.Map from the given properties.
Properties must follow the Java properties format, key-value list separated by equal sign with a "." as key delimiter.
["processors.batch.timeout=2s", "processors.batch/foo.timeout=3s"]
Types ¶
This section is empty.