env

package
v0.0.0-...-f4cfdf3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package env provides the environment variables for the installer.

Index

Constants

View Source
const (
	// APMInstrumentationEnabledAll enables APM instrumentation for all containers.
	APMInstrumentationEnabledAll = "all"
	// APMInstrumentationEnabledDocker enables APM instrumentation for Docker containers.
	APMInstrumentationEnabledDocker = "docker"
	// APMInstrumentationEnabledHost enables APM instrumentation for the host.
	APMInstrumentationEnabledHost = "host"
	// APMInstrumentationNotSet is the default value when the environment variable is not set.
	APMInstrumentationNotSet = "not_set"
)

Variables

This section is empty.

Functions

func GetHTTPClient

func GetHTTPClient() *http.Client

GetHTTPClient returns an HTTP client with the proxy settings loaded from the environment.

Types

type ApmLibLanguage

type ApmLibLanguage string

ApmLibLanguage is a language defined in DD_APM_INSTRUMENTATION_LIBRARIES env var

type ApmLibVersion

type ApmLibVersion string

ApmLibVersion is the version of the library defined in DD_APM_INSTRUMENTATION_LIBRARIES env var

type Env

type Env struct {
	APIKey         string
	Site           string
	RemoteUpdates  bool
	RemotePolicies bool

	Mirror                      string
	RegistryOverride            string
	RegistryAuthOverride        string
	RegistryUsername            string
	RegistryPassword            string
	RegistryOverrideByImage     map[string]string
	RegistryAuthOverrideByImage map[string]string
	RegistryUsernameByImage     map[string]string
	RegistryPasswordByImage     map[string]string

	DefaultPackagesInstallOverride map[string]bool
	DefaultPackagesVersionOverride map[string]string

	ApmLibraries map[ApmLibLanguage]ApmLibVersion

	AgentMajorVersion string
	AgentMinorVersion string
	AgentUserName     string // windows only

	InstallScript InstallScriptEnv

	CDNEnabled      bool
	CDNLocalDirPath string

	Tags     []string
	Hostname string

	HTTPProxy  string
	HTTPSProxy string
	NoProxy    string
}

Env contains the configuration for the installer.

func FromConfig

func FromConfig(config model.Reader) *Env

FromConfig returns an Env struct with values from the configuration.

func FromEnv

func FromEnv() *Env

FromEnv returns an Env struct with values from the environment.

func (*Env) ToEnv

func (e *Env) ToEnv() []string

ToEnv returns a slice of environment variables from the Env struct.

type InstallScriptEnv

type InstallScriptEnv struct {
	APMInstrumentationEnabled string
}

InstallScriptEnv contains the environment variables for the install script.

Jump to

Keyboard shortcuts

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