Documentation
¶
Overview ¶
Package create provides the constructor for the config
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfig ¶
func NewConfig(name string, configLib string) model.BuildableConfig
NewConfig returns a config with the given name. Implementation of the config is chosen by an env var
Possible values for DD_CONF_NODETREEMODEL:
- "enable": Use the nodetreemodel for the config, instead of viper
- "tee": Construct both viper and nodetreemodel. Write to both, only read from viper
- "<Agent version>": enable NTM if the Agent has a version equal or higher than the given version. This acts has a minimum version for whitch to enable NTM, useful when using the same configuration across different agent versions.
- other: Use viper
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.