packages

package
v0.65.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package packages contains the install/upgrades/uninstall logic for packages

Index

Constants

This section is empty.

Variables

View Source
var PreRemoveHooks = map[string]repository.PreRemoveHook{
	// contains filtered or unexported fields
}

PreRemoveHooks contains the mapping between packages and their pre-remove hooks

Functions

func InstrumentAPMInjector

func InstrumentAPMInjector(ctx context.Context, method string) (err error)

InstrumentAPMInjector instruments the APM injector

func PostInstallAgent added in v0.65.0

func PostInstallAgent(ctx context.Context, installPath string, caller string) (err error)

PostInstallAgent performs post-installation steps for the agent

func PreRemoveHookDotnet added in v0.65.0

func PreRemoveHookDotnet(_ context.Context, _ string) (bool, error)

PreRemoveHookDotnet runs before the garbage collector deletes the package files for a version.

func PrepareAgent

func PrepareAgent(ctx context.Context) (err error)

PrepareAgent prepares the machine to install the agent

func PrepareInstaller

func PrepareInstaller(ctx context.Context) error

PrepareInstaller prepares the installer

func PromoteAPMLibraryDotnetExperiment added in v0.65.0

func PromoteAPMLibraryDotnetExperiment(_ context.Context) error

PromoteAPMLibraryDotnetExperiment promotes a .NET APM library experiment.

func PromoteAgentExperiment

func PromoteAgentExperiment(ctx context.Context) error

PromoteAgentExperiment promotes the agent experiment

func PromoteInstallerExperiment

func PromoteInstallerExperiment(ctx context.Context) error

PromoteInstallerExperiment promotes the installer experiment

func RemoveAPMInjector

func RemoveAPMInjector(ctx context.Context) (err error)

RemoveAPMInjector removes the APM injector

func RemoveAPMLibraryDotnet added in v0.65.0

func RemoveAPMLibraryDotnet(_ context.Context) error

RemoveAPMLibraryDotnet removes the .NET APM library.

func RemoveAgent

func RemoveAgent(ctx context.Context) error

RemoveAgent stops and removes the agent

func RemoveInstaller

func RemoveInstaller(ctx context.Context) error

RemoveInstaller removes the installer systemd units

func SetupAPMInjector

func SetupAPMInjector(ctx context.Context) (err error)

SetupAPMInjector sets up the injector at bootstrap

func SetupAPMLibraryDotnet added in v0.65.0

func SetupAPMLibraryDotnet(_ context.Context, _ string) error

SetupAPMLibraryDotnet runs on the first install of the .NET APM library after the files are laid out on disk.

func SetupAgent

func SetupAgent(ctx context.Context, _ []string) (err error)

SetupAgent installs and starts the agent

func SetupInstaller

func SetupInstaller(ctx context.Context) (err error)

SetupInstaller installs and starts the installer systemd units

func StartAPMLibraryDotnetExperiment added in v0.65.0

func StartAPMLibraryDotnetExperiment(_ context.Context) error

StartAPMLibraryDotnetExperiment starts a .NET APM library experiment.

func StartAgentExperiment

func StartAgentExperiment(ctx context.Context) error

StartAgentExperiment starts the agent experiment

func StartInstallerExperiment

func StartInstallerExperiment(ctx context.Context) error

StartInstallerExperiment installs the experimental systemd units for the installer

func StopAPMLibraryDotnetExperiment added in v0.65.0

func StopAPMLibraryDotnetExperiment(_ context.Context) error

StopAPMLibraryDotnetExperiment stops a .NET APM library experiment.

func StopAgentExperiment

func StopAgentExperiment(ctx context.Context) error

StopAgentExperiment stops the agent experiment

func StopInstallerExperiment

func StopInstallerExperiment(ctx context.Context) error

StopInstallerExperiment starts the stable systemd units for the installer

func UninstrumentAPMInjector

func UninstrumentAPMInjector(ctx context.Context, method string) (err error)

UninstrumentAPMInjector uninstruments the APM injector

Types

This section is empty.

Directories

Path Synopsis
Package apminject implements the apm injector installer
Package apminject implements the apm injector installer
Package embedded provides embedded files for the installer.
Package embedded provides embedded files for the installer.
Package exec provides wrappers to external executables
Package exec provides wrappers to external executables
Package file offers filesystem utils geared towards idempotent operations.
Package file offers filesystem utils geared towards idempotent operations.
Package packagemanager provides an interface over the OS package manager
Package packagemanager provides an interface over the OS package manager
Package selinux offers an interface to set agent's SELinux permissions.
Package selinux offers an interface to set agent's SELinux permissions.
Package systemd offers an interface over systemd
Package systemd offers an interface over systemd
Package user offers an interface over user and group management
Package user offers an interface over user and group management

Jump to

Keyboard shortcuts

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