helper

package
v0.61.0-rc.5 Latest Latest
Warning

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

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

Documentation

Overview

Package helper implement interfaces to get some information that can be OS specific

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper added in v0.52.0

type Helper interface {
	GetInstallFolder() string
	GetConfigFolder() string
	GetBinaryPath() string
	GetConfigFileName() string
	GetServiceName() string
	AgentProcesses() []string
}

Helper generic interface

type Unix

type Unix struct{}

Unix implement helper function for Unix distributions

func NewUnix added in v0.52.0

func NewUnix() *Unix

NewUnix create a new instance of Unix helper

func (*Unix) AgentProcesses added in v0.52.0

func (u *Unix) AgentProcesses() []string

AgentProcesses return the list of agent processes

func (*Unix) GetBinaryPath

func (u *Unix) GetBinaryPath() string

GetBinaryPath return the datadog-agent binary path

func (*Unix) GetConfigFileName added in v0.51.0

func (u *Unix) GetConfigFileName() string

GetConfigFileName return the config file name

func (*Unix) GetConfigFolder

func (u *Unix) GetConfigFolder() string

GetConfigFolder return the config folder path

func (*Unix) GetInstallFolder

func (u *Unix) GetInstallFolder() string

GetInstallFolder return the install folder path

func (*Unix) GetServiceName added in v0.51.0

func (u *Unix) GetServiceName() string

GetServiceName return the service name

type UnixDogstatsd added in v0.51.0

type UnixDogstatsd struct{}

UnixDogstatsd implement helper function for Dogstatsd on Unix distributions

func NewUnixDogstatsd added in v0.52.0

func NewUnixDogstatsd() *UnixDogstatsd

NewUnixDogstatsd create a new instance of Unix helper for dogstatsd

func (*UnixDogstatsd) AgentProcesses added in v0.52.0

func (u *UnixDogstatsd) AgentProcesses() []string

AgentProcesses return the list of agent processes

func (*UnixDogstatsd) GetBinaryPath added in v0.51.0

func (u *UnixDogstatsd) GetBinaryPath() string

GetBinaryPath return the datadog-agent binary path

func (*UnixDogstatsd) GetConfigFileName added in v0.51.0

func (u *UnixDogstatsd) GetConfigFileName() string

GetConfigFileName return the config file name

func (*UnixDogstatsd) GetConfigFolder added in v0.51.0

func (u *UnixDogstatsd) GetConfigFolder() string

GetConfigFolder return the config folder path

func (*UnixDogstatsd) GetInstallFolder added in v0.51.0

func (u *UnixDogstatsd) GetInstallFolder() string

GetInstallFolder return the install folder path

func (*UnixDogstatsd) GetServiceName added in v0.51.0

func (u *UnixDogstatsd) GetServiceName() string

GetServiceName return the service name

type Windows added in v0.52.0

type Windows struct {
	// contains filtered or unexported fields
}

Windows implement helper function for Windows distributions

func NewWindowsHelper added in v0.52.0

func NewWindowsHelper() *Windows

NewWindowsHelper create a new instance of Windows helper

func NewWindowsHelperWithCustomPaths added in v0.54.0

func NewWindowsHelperWithCustomPaths(installFolder, configFolder string) *Windows

NewWindowsHelperWithCustomPaths create a new instance of Windows helper with custom paths

func (*Windows) AgentProcesses added in v0.52.0

func (w *Windows) AgentProcesses() []string

AgentProcesses return the list of agent processes

func (*Windows) GetBinaryPath added in v0.52.0

func (w *Windows) GetBinaryPath() string

GetBinaryPath return the datadog-agent binary path

func (*Windows) GetConfigFileName added in v0.52.0

func (w *Windows) GetConfigFileName() string

GetConfigFileName return the config file name

func (*Windows) GetConfigFolder added in v0.52.0

func (w *Windows) GetConfigFolder() string

GetConfigFolder return the config folder path

func (*Windows) GetInstallFolder added in v0.52.0

func (w *Windows) GetInstallFolder() string

GetInstallFolder return the install folder path

func (*Windows) GetServiceName added in v0.52.0

func (w *Windows) GetServiceName() string

GetServiceName return the service name

Jump to

Keyboard shortcuts

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