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 (*Unix) AgentProcesses ¶ added in v0.52.0
AgentProcesses return the list of agent processes
func (*Unix) GetBinaryPath ¶
GetBinaryPath return the datadog-agent binary path
func (*Unix) GetConfigFileName ¶ added in v0.51.0
GetConfigFileName return the config file name
func (*Unix) GetConfigFolder ¶
GetConfigFolder return the config folder path
func (*Unix) GetInstallFolder ¶
GetInstallFolder return the install folder path
func (*Unix) GetServiceName ¶ added in v0.51.0
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
NewWindowsHelperWithCustomPaths create a new instance of Windows helper with custom paths
func (*Windows) AgentProcesses ¶ added in v0.52.0
AgentProcesses return the list of agent processes
func (*Windows) GetBinaryPath ¶ added in v0.52.0
GetBinaryPath return the datadog-agent binary path
func (*Windows) GetConfigFileName ¶ added in v0.52.0
GetConfigFileName return the config file name
func (*Windows) GetConfigFolder ¶ added in v0.52.0
GetConfigFolder return the config folder path
func (*Windows) GetInstallFolder ¶ added in v0.52.0
GetInstallFolder return the install folder path
func (*Windows) GetServiceName ¶ added in v0.52.0
GetServiceName return the service name