common

package
v0.9.1-0...-e089475 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package common contains the HostInstaller struct which is used to write the agent agentConfiguration to disk

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVar

type EnvVar struct {
	Key   string `yaml:"key"`
	Value string `yaml:"value"`
}

EnvVar is a struct that represents an environment variable

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

type LogConfig

type LogConfig struct {
	Type    string `yaml:"type"`
	Path    string `yaml:"path"`
	Service string `yaml:"service"`
	Source  string `yaml:"source"`
}

LogConfig is a struct that represents a single log agentConfiguration

type SparkInstance

type SparkInstance struct {
	SparkURL         string `yaml:"spark_url"`
	SparkClusterMode string `yaml:"spark_cluster_mode"`
	ClusterName      string `yaml:"cluster_name"`
	StreamingMetrics bool   `yaml:"streaming_metrics"`
}

SparkInstance is a struct that represents a single spark instance

Jump to

Keyboard shortcuts

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