create

package module
v0.76.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 7 Imported by: 3

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL