Documentation ¶
Overview ¶
Package command provides Windows command helpers
Index ¶
Constants ¶
View Source
const ( // DatadogCodeSignatureThumbprint is the thumbprint of the Datadog Code Signing certificate // Valid From: May 2023 // Valid To: May 2025 DatadogCodeSignatureThumbprint = `B03F29CC07566505A718583E9270A6EE17678742` // RegistryKeyPath is the root registry key that the Datadog Agent uses to store some state RegistryKeyPath = "HKLM:\\SOFTWARE\\Datadog\\Datadog Agent" // DefaultInstallPath is the default install path for the Datadog Agent DefaultInstallPath = `C:\Program Files\Datadog\Datadog Agent` // DefaultConfigRoot is the default config root for the Datadog Agent DefaultConfigRoot = `C:\ProgramData\Datadog` // DefaultAgentUserName is the default user name for the Datadog Agent DefaultAgentUserName = `ddagentuser` )
Variables ¶
This section is empty.
Functions ¶
func GetConfigRootFromRegistry ¶
func GetConfigRootFromRegistry() string
GetConfigRootFromRegistry gets the config root from the registry, e.g. C:\ProgramData\Datadog
func GetDatadogAgentProductCode ¶
func GetDatadogAgentProductCode() string
GetDatadogAgentProductCode returns the product code GUID for the Datadog Agent
func GetInstallPathFromRegistry ¶
func GetInstallPathFromRegistry() string
GetInstallPathFromRegistry gets the install path from the registry, e.g. C:\Program Files\Datadog\Datadog Agent
func GetProductCodeByName ¶
GetProductCodeByName returns the product code GUID for the given product name
func GetRegistryValue ¶
GetRegistryValue returns a command string to get a registry value
func RegistryKeyExists ¶
RegistryKeyExists returns a command to check if a registry path exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.