Documentation ¶
Overview ¶
Package installer provides a package manager that installs and uninstalls packages.
Index ¶
Constants ¶
View Source
const ( // PackagesPath is the path to the packages directory. PackagesPath = "/opt/datadog-packages" // TmpDirPath is the path to the temporary directory used for package installation. TmpDirPath = "/opt/datadog-packages" // LocksPack is the path to the locks directory. LocksPack = "/var/run/datadog-packages" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Installer ¶
type Installer interface { State(pkg string) (repository.State, error) States() (map[string]repository.State, error) Install(ctx context.Context, url string) error Remove(ctx context.Context, pkg string) error InstallExperiment(ctx context.Context, url string) error RemoveExperiment(ctx context.Context, pkg string) error PromoteExperiment(ctx context.Context, pkg string) error GarbageCollect(ctx context.Context) error }
Installer is a package manager that installs and uninstalls packages.
func NewInstaller ¶
NewInstaller returns a new Package Manager.
type Option ¶
type Option func(*options)
Option are the options for the package manager.
func WithRegistryAuth ¶
WithRegistryAuth sets the registry authentication method.
Directories ¶
Path | Synopsis |
---|---|
Package errors contains errors used by the installer.
|
Package errors contains errors used by the installer. |
Package repository contains the packaging logic of the updater.
|
Package repository contains the packaging logic of the updater. |
Package service provides a way to interact with os services
|
Package service provides a way to interact with os services |
Click to show internal directories.
Click to hide internal directories.