installer

package
v0.0.0-...-663520b Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

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

func DefaultPackages(env *env.Env) []string

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.

func NewInstaller

func NewInstaller(env *env.Env) (Installer, error)

NewInstaller returns a new Package Manager.

type Package

type Package struct {
	Name string
	// contains filtered or unexported fields
}

Package represents a package known to the installer

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 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.
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

Jump to

Keyboard shortcuts

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