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 */}, }
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(pkg string) (repository.State, error) States() (map[string]repository.State, error) ConfigState(pkg string) (repository.State, error) ConfigStates() (map[string]repository.State, error) Install(ctx context.Context, url string, args []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, version string) 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 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 fixtures contains test datadog package fixtures.
|
Package fixtures contains test datadog package fixtures. |
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 |
embedded
Package embedded provides embedded files for the installer.
|
Package embedded provides embedded files for the installer. |
Package repository contains the packaging logic of the updater.
|
Package repository contains the packaging logic of the updater. |
Package setup contains the different setup scenarios
|
Package setup contains the different setup scenarios |
common
Package common contains the HostInstaller struct which is used to write the agent agentConfiguration to disk
|
Package common contains the HostInstaller struct which is used to write the agent agentConfiguration to disk |
djm
Package djm contains data-jobs-monitoring installation logic
|
Package djm contains data-jobs-monitoring installation logic |
Package tar provides utilities to extract tar archives
|
Package tar provides utilities to extract tar archives |
Click to show internal directories.
Click to hide internal directories.