stableconfig

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package stableconfig provides utilities to load and manage APM configurations loaded from YAML configuration files

Package stableconfig provides utilities to load and manage APM configurations loaded from YAML configuration files

Package stableconfig provides utilities to load and manage APM configurations loaded from YAML configuration files

Index

Constants

This section is empty.

Variables

View Source
var LocalConfig = newStableConfigSource(localFilePath, telemetry.OriginLocalStableConfig)

LocalConfig holds the configuration loaded from the user-managed file.

View Source
var ManagedConfig = newStableConfigSource(managedFilePath, telemetry.OriginManagedStableConfig)

ManagedConfig holds the configuration loaded from the fleet-managed file.

Functions

func Bool

func Bool(env string, def bool) (value bool, origin telemetry.Origin, err error)

Bool returns a boolean config value from managed file-based config, environment variable, or local file-based config, in that order. If none provide a valid boolean, it returns the default. Also returns the value's origin and any parse error encountered.

func String

func String(env string, def string) (string, telemetry.Origin)

String returns a string config value from managed file-based config, environment variable, or local file-based config, in that order. If none are set, it returns the default value and origin.

Types

type ConfigData added in v2.2.0

type ConfigData struct {
	Origin   telemetry.Origin
	Value    string
	ConfigID string
}

ConfigData holds configuration value with its origin and config ID

Jump to

Keyboard shortcuts

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