Documentation
¶
Overview ¶
Package installer provides a package manager that installs and uninstalls packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PackagesList = []Package{ {Name: "datadog-apm-inject", /* contains filtered or unexported fields */}, {Name: "datadog-apm-library-java", /* contains filtered or unexported fields */}, {Name: "datadog-apm-library-ruby", /* contains filtered or unexported fields */}, {Name: "datadog-apm-library-js", /* contains filtered or unexported fields */}, {Name: "datadog-apm-library-dotnet", /* contains filtered or unexported fields */}, {Name: "datadog-apm-library-python", /* contains filtered or unexported fields */}, {Name: "datadog-apm-library-php", /* contains filtered or unexported fields */}, {Name: "datadog-agent", /* contains filtered or unexported fields */}, {Name: "datadog-ddot", /* contains filtered or unexported fields */}, }
PackagesList lists all known packages. Not all of them are installable
Functions ¶
func DefaultPackages ¶
DefaultPackages resolves the default packages URLs to install based on the environment.
Types ¶
type Installer ¶
type Installer interface {
IsInstalled(ctx context.Context, pkg string) (bool, error)
AvailableDiskSpace() (uint64, error)
State(ctx context.Context, pkg string) (repository.State, error)
States(ctx context.Context) (map[string]repository.State, error)
ConfigState(ctx context.Context, pkg string) (repository.State, error)
ConfigStates(ctx context.Context) (map[string]repository.State, error)
Install(ctx context.Context, url string, args []string) error
ForceInstall(ctx context.Context, url string, args []string) error
SetupInstaller(ctx context.Context, path string) error
Remove(ctx context.Context, pkg string) error
Purge(ctx context.Context)
InstallExperiment(ctx context.Context, url string) error
RemoveExperiment(ctx context.Context, pkg string) error
PromoteExperiment(ctx context.Context, pkg string) error
InstallConfigExperiment(ctx context.Context, pkg string, operations config.Operations) error
RemoveConfigExperiment(ctx context.Context, pkg string) error
PromoteConfigExperiment(ctx context.Context, pkg string) error
GarbageCollect(ctx context.Context) error
InstrumentAPMInjector(ctx context.Context, method string) error
UninstrumentAPMInjector(ctx context.Context, method string) error
Close() error
}
Installer is a package manager that installs and uninstalls packages.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package bootstrap provides logic to self-bootstrap the installer.
|
Package bootstrap provides logic to self-bootstrap the installer. |
|
Package commands contains the installer subcommands
|
Package commands contains the installer subcommands |
|
Package config contains the logic to manage the config of the packages.
|
Package config contains the logic to manage the config of the packages. |
|
Package db provides a database to store information about packages
|
Package db provides a database to store information about packages |
|
Package env provides the environment variables for the installer.
|
Package env provides the environment variables for the installer. |
|
Package errors contains errors used by the installer.
|
Package errors contains errors used by the installer. |
|
Package exec provides an implementation of the Installer interface that uses the installer binary.
|
Package exec provides an implementation of the Installer interface that uses the installer binary. |
|
Package fixtures contains test datadog package fixtures.
|
Package fixtures contains test datadog package fixtures. |
|
Package installinfo offers helpers to interact with the 'install_info'/'install.json' files.
|
Package installinfo offers helpers to interact with the 'install_info'/'install.json' files. |
|
Package msi contains helper functions to work with msi packages.
|
Package msi contains helper functions to work with msi packages. |
|
Package oci provides a way to interact with Datadog Packages OCIs.
|
Package oci provides a way to interact with Datadog Packages OCIs. |
|
Package packages contains the install/upgrades/uninstall logic for packages
|
Package packages contains the install/upgrades/uninstall logic for packages |
|
apminject
Package apminject implements the apm injector installer
|
Package apminject implements the apm injector installer |
|
embedded
Package embedded provides embedded files for the installer.
|
Package embedded provides embedded files for the installer. |
|
embedded/tmpl
command
Package main generates the templates for the installer.
|
Package main generates the templates for the installer. |
|
exec
Package exec provides wrappers to external executables
|
Package exec provides wrappers to external executables |
|
fapolicyd
Package fapolicyd offers an interface to set agent's fapolicyd permissions.
|
Package fapolicyd offers an interface to set agent's fapolicyd permissions. |
|
file
Package file offers filesystem utils geared towards idempotent operations.
|
Package file offers filesystem utils geared towards idempotent operations. |
|
integrations
Package integrations contains packaging logic for python integrations
|
Package integrations contains packaging logic for python integrations |
|
packagemanager
Package packagemanager provides an interface over the OS package manager
|
Package packagemanager provides an interface over the OS package manager |
|
selinux
Package selinux offers an interface to set agent's SELinux permissions.
|
Package selinux offers an interface to set agent's SELinux permissions. |
|
service
Package service provides service manager utilities
|
Package service provides service manager utilities |
|
service/systemd
Package systemd provides a set of functions to manage systemd units
|
Package systemd provides a set of functions to manage systemd units |
|
service/sysvinit
Package sysvinit provides a set of functions to manage sysvinit services
|
Package sysvinit provides a set of functions to manage sysvinit services |
|
service/upstart
Package upstart provides a set of functions to manage upstart services
|
Package upstart provides a set of functions to manage upstart services |
|
service/windows
Package windows provides a set of functions to manage Windows services.
|
Package windows provides a set of functions to manage Windows services. |
|
ssi
Package ssi adds methods to check the status of the APM Single Step Instrumentation
|
Package ssi adds methods to check the status of the APM Single Step Instrumentation |
|
user
Package user offers an interface over user and group management
|
Package user offers an interface over user and group management |
|
user/windows
Package windowsuser offers an interface over user management on Windows
|
Package windowsuser offers an interface over user management on Windows |
|
Package paths defines commonly used paths throughout the installer
|
Package paths defines commonly used paths throughout the installer |
|
Package repository contains the packaging logic of the updater.
|
Package repository contains the packaging logic of the updater. |
|
service
|
|
|
helper
module
|
|
|
Package setup contains the different setup scenarios
|
Package setup contains the different setup scenarios |
|
common
Package common defines the Setup structure that allows setup scripts to define packages and configurations to install.
|
Package common defines the Setup structure that allows setup scripts to define packages and configurations to install. |
|
config
Package config defines the configurations to install.
|
Package config defines the configurations to install. |
|
defaultscript
Package defaultscript contains default standard installation logic
|
Package defaultscript contains default standard installation logic |
|
djm
Package djm contains data-jobs-monitoring installation logic
|
Package djm contains data-jobs-monitoring installation logic |
|
Package symlink contains the logic to manage symlinks.
|
Package symlink contains the logic to manage symlinks. |
|
Package tar provides utilities to extract tar archives
|
Package tar provides utilities to extract tar archives |
|
Package telemetry provides the telemetry for fleet components.
|
Package telemetry provides the telemetry for fleet components. |
Click to show internal directories.
Click to hide internal directories.