Documentation
¶
Overview ¶
Package configstreambootstrap holds the global-config-builder helpers the configstreamconsumer component delegates to. Lives outside comp/ because the pkgconfigusage depguard blocks pkg/config/setup imports from comp/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplySetting ¶
ApplySetting writes one streamed setting to the global config, preserving the source.
func AuthTokenFilepath ¶
func AuthTokenFilepath() string
AuthTokenFilepath resolves the auth-token path via pkg/api/security's fallback rules.
func DisableLocalEnvLayer ¶
func DisableLocalEnvLayer(clientName string)
DisableLocalEnvLayer drops the env layer (nodetreemodel only) so local DD_* vars can't override streamed values. Viper-backed configs cannot clear env vars.
func IPCCertFilepath ¶
func IPCCertFilepath() string
IPCCertFilepath returns the configured ipc_cert_file_path.
func SeedGlobalBuilder ¶
SeedGlobalBuilder writes bootstrap values to the global builder. configFile is recorded as ConfigFileUsed so pkg/api/security[/cert] fallback paths resolve next to datadog.yaml.
Types ¶
type Settings ¶
type Settings struct {
AuthTokenFilePath string
IPCCertFilePath string
CmdHost string
CmdPort int
VSockAddr string
RARRegistryEnabled bool
}
Settings is the bounded set of values resolved from env+YAML before dial. Everything else comes from the streamed snapshot.
func ReadBaseSettings ¶
func ReadBaseSettings() Settings
ReadBaseSettings returns the bootstrap settings from the global config (defaults + env layer).