command

package
v0.61.0-rc.1 Latest Latest
Warning

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

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

Documentation

Overview

Package command provides Windows command helpers

Index

Constants

View Source
const (
	// 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

func GetProductCodeByName(name string) string

GetProductCodeByName returns the product code GUID for the given product name

func GetRegistryValue

func GetRegistryValue(path string, value string) string

GetRegistryValue returns a command string to get a registry value

func RegistryKeyExists

func RegistryKeyExists(path string) string

RegistryKeyExists returns a command to check if a registry path exists

Types

This section is empty.

Jump to

Keyboard shortcuts

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