paths

package
v0.84.5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package paths defines commonly used paths throughout the installer

Package paths defines commonly used paths throughout the installer

Index

Constants

View Source
const (
	// PackagesPath is the path to the packages directory.
	PackagesPath = "/opt/datadog-packages"
	// ConfigsPath is the path to the Fleet-managed configuration directory.
	ConfigsPath = "/etc/datadog-agent/managed"
	// RootTmpDir is the temporary path where the bootstrapper will be extracted to.
	RootTmpDir = "/opt/datadog-packages/tmp"
	// DefaultUserConfigsDir is the default Agent configuration directory.
	DefaultUserConfigsDir = "/etc"
	// AgentConfigDir is the path to the agent configuration directory.
	AgentConfigDir = "/etc/datadog-agent"
	// AgentConfigDirExp is the path to the agent configuration directory for experiments.
	AgentConfigDirExp = "/etc/datadog-agent-exp"
	// StableInstallerPath is the path to the stable installer binary.
	StableInstallerPath = "/opt/datadog-packages/datadog-installer/stable/bin/installer/installer"
	// ExperimentInstallerPath is the path to the experiment installer binary.
	ExperimentInstallerPath = "/opt/datadog-packages/datadog-installer/experiment/bin/installer/installer"
	// RunPath is the default run path
	RunPath = "/opt/datadog-packages/run"
	// DatadogDataDir is the path to the Datadog data directory.
	DatadogDataDir = "/etc/datadog-agent"
	// DatadogProgramFilesDir is the Datadog Program Files directory (not used on non-Windows platforms).
	DatadogProgramFilesDir = ""
)

Variables

This section is empty.

Functions

func ConfigDirIsTrustedForRead added in v0.84.3

func ConfigDirIsTrustedForRead(_ string) (bool, error)

ConfigDirIsTrustedForRead permits reads on non-Windows platforms, where this Windows directory-ownership policy does not apply.

func CopyFile added in v0.65.0

func CopyFile(src, dst string) error

CopyFile copies a file from src to dst

func EnsureInstallerDataDir added in v0.65.0

func EnsureInstallerDataDir() error

EnsureInstallerDataDir ensures that permissions are set correctly on the installer data directory. This is a no-op on non-Windows platforms.

func Rename added in v0.79.0

func Rename(_ context.Context, sourcePath, targetPath string) error

Rename is a plain os.Rename on non-Windows platforms. See rename_windows.go for the Windows implementation, which retries on transient access-denied / sharing-violation errors.

func SetRepositoryPermissions added in v0.65.0

func SetRepositoryPermissions(path string) error

SetRepositoryPermissions sets the permissions on the repository directory

func SetupInstallerDataDir added in v0.75.0

func SetupInstallerDataDir() error

SetupInstallerDataDir ensures that permissions are set correctly on the installer data directory. This is a no-op on non-Windows platforms.

Types

This section is empty.

Directories

Path Synopsis
Package testutil provides directory fixtures for installer configuration trust tests.
Package testutil provides directory fixtures for installer configuration trust tests.

Jump to

Keyboard shortcuts

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