exec

package
v0.0.0-...-946132c Latest Latest
Warning

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

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

Documentation

Overview

Package exec provides an implementation of the Installer interface that uses the installer binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstallerExec

type InstallerExec struct {
	// contains filtered or unexported fields
}

InstallerExec is an implementation of the Installer interface that uses the installer binary.

func NewInstallerExec

func NewInstallerExec(env *env.Env, installerBinPath string) *InstallerExec

NewInstallerExec returns a new InstallerExec.

func (*InstallerExec) AvailableDiskSpace

func (i *InstallerExec) AvailableDiskSpace() (uint64, error)

AvailableDiskSpace returns the available disk space.

func (*InstallerExec) Close

func (i *InstallerExec) Close() error

Close cleans up any resources.

func (*InstallerExec) ConfigState

func (i *InstallerExec) ConfigState(pkg string) (repository.State, error)

ConfigState returns the state of a package's configuration.

func (*InstallerExec) ConfigStates

func (i *InstallerExec) ConfigStates() (map[string]repository.State, error)

ConfigStates returns the states of all packages' configurations.

func (*InstallerExec) DefaultPackages

func (i *InstallerExec) DefaultPackages(ctx context.Context) (_ []string, err error)

DefaultPackages returns the default packages to install.

func (*InstallerExec) GarbageCollect

func (i *InstallerExec) GarbageCollect(ctx context.Context) (err error)

GarbageCollect runs the garbage collector.

func (*InstallerExec) Install

func (i *InstallerExec) Install(ctx context.Context, url string, _ []string) (err error)

Install installs a package.

func (*InstallerExec) InstallConfigExperiment

func (i *InstallerExec) InstallConfigExperiment(ctx context.Context, url string, version string) (err error)

InstallConfigExperiment installs an experiment.

func (*InstallerExec) InstallExperiment

func (i *InstallerExec) InstallExperiment(ctx context.Context, url string) (err error)

InstallExperiment installs an experiment.

func (*InstallerExec) InstrumentAPMInjector

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

InstrumentAPMInjector instruments the APM auto-injector.

func (*InstallerExec) IsInstalled

func (i *InstallerExec) IsInstalled(ctx context.Context, pkg string) (_ bool, err error)

IsInstalled checks if a package is installed.

func (*InstallerExec) PromoteConfigExperiment

func (i *InstallerExec) PromoteConfigExperiment(ctx context.Context, pkg string) (err error)

PromoteConfigExperiment promotes an experiment to stable.

func (*InstallerExec) PromoteExperiment

func (i *InstallerExec) PromoteExperiment(ctx context.Context, pkg string) (err error)

PromoteExperiment promotes an experiment to stable.

func (*InstallerExec) Purge

func (i *InstallerExec) Purge(_ context.Context)

Purge - noop, must be called by the package manager on uninstall.

func (*InstallerExec) Remove

func (i *InstallerExec) Remove(ctx context.Context, pkg string) (err error)

Remove removes a package.

func (*InstallerExec) RemoveConfigExperiment

func (i *InstallerExec) RemoveConfigExperiment(ctx context.Context, pkg string) (err error)

RemoveConfigExperiment removes an experiment.

func (*InstallerExec) RemoveExperiment

func (i *InstallerExec) RemoveExperiment(ctx context.Context, pkg string) (err error)

RemoveExperiment removes an experiment.

func (*InstallerExec) Setup

func (i *InstallerExec) Setup(ctx context.Context) (err error)

Setup runs the setup command.

func (*InstallerExec) State

func (i *InstallerExec) State(pkg string) (repository.State, error)

State returns the state of a package.

func (*InstallerExec) States

func (i *InstallerExec) States() (map[string]repository.State, error)

States returns the states of all packages.

func (*InstallerExec) UninstrumentAPMInjector

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

UninstrumentAPMInjector uninstruments the APM auto-injector.

Jump to

Keyboard shortcuts

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