Documentation ¶
Overview ¶
Package common contains the HostInstaller struct which is used to write the agent agentConfiguration to disk
Index ¶
- type EnvVar
- type HostInstaller
- func (i *HostInstaller) AddAgentConfig(key string, value interface{})
- func (i *HostInstaller) AddHostTag(key, value string)
- func (i *HostInstaller) AddLogConfig(log LogConfig)
- func (i *HostInstaller) AddSparkInstance(spark SparkInstance)
- func (i *HostInstaller) AddTracerEnv(key, value string)
- func (i *HostInstaller) ConfigureAndInstall(ctx context.Context) error
- func (i *HostInstaller) SetAgentVersion(version string)
- func (i *HostInstaller) SetInjectorVersion(version string)
- func (i *HostInstaller) SetJavaTracerVersion(version string)
- type LogConfig
- type SparkInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostInstaller ¶
type HostInstaller struct {
// contains filtered or unexported fields
}
HostInstaller is a struct that represents the agent agentConfiguration used to write the agentConfiguration to disk in datadog-installer custom setup scenarios
func NewHostInstaller ¶
func NewHostInstaller(env *env.Env) (*HostInstaller, error)
NewHostInstaller creates a new HostInstaller struct and loads the existing agentConfiguration from disk
func (*HostInstaller) AddAgentConfig ¶
func (i *HostInstaller) AddAgentConfig(key string, value interface{})
AddAgentConfig adds a key value pair to the agent agentConfiguration
func (*HostInstaller) AddHostTag ¶
func (i *HostInstaller) AddHostTag(key, value string)
AddHostTag adds a host tag to the agent agentConfiguration
func (*HostInstaller) AddLogConfig ¶
func (i *HostInstaller) AddLogConfig(log LogConfig)
AddLogConfig adds a log agentConfiguration to the agent configuration
func (*HostInstaller) AddSparkInstance ¶
func (i *HostInstaller) AddSparkInstance(spark SparkInstance)
AddSparkInstance adds a spark instance to the agent agentConfiguration
func (*HostInstaller) AddTracerEnv ¶
func (i *HostInstaller) AddTracerEnv(key, value string)
AddTracerEnv adds an environment variable to the list of environment variables to inject
func (*HostInstaller) ConfigureAndInstall ¶
func (i *HostInstaller) ConfigureAndInstall(ctx context.Context) error
ConfigureAndInstall writes configurations to disk and installs desired packages
func (*HostInstaller) SetAgentVersion ¶
func (i *HostInstaller) SetAgentVersion(version string)
SetAgentVersion sets the agent version to install
func (*HostInstaller) SetInjectorVersion ¶
func (i *HostInstaller) SetInjectorVersion(version string)
SetInjectorVersion sets the injector version to install
func (*HostInstaller) SetJavaTracerVersion ¶
func (i *HostInstaller) SetJavaTracerVersion(version string)
SetJavaTracerVersion sets the java tracer version to install