Documentation ¶
Overview ¶
Package exec provides an implementation of the Installer interface that uses the installer binary.
Index ¶
- type InstallerExec
- func (i *InstallerExec) AvailableDiskSpace() (uint64, error)
- func (i *InstallerExec) Close() error
- func (i *InstallerExec) ConfigState(pkg string) (repository.State, error)
- func (i *InstallerExec) ConfigStates() (map[string]repository.State, error)
- func (i *InstallerExec) DefaultPackages(ctx context.Context) (_ []string, err error)
- func (i *InstallerExec) GarbageCollect(ctx context.Context) (err error)
- func (i *InstallerExec) Install(ctx context.Context, url string, _ []string) (err error)
- func (i *InstallerExec) InstallConfigExperiment(ctx context.Context, url string, version string) (err error)
- func (i *InstallerExec) InstallExperiment(ctx context.Context, url string) (err error)
- func (i *InstallerExec) InstrumentAPMInjector(ctx context.Context, method string) (err error)
- func (i *InstallerExec) IsInstalled(ctx context.Context, pkg string) (_ bool, err error)
- func (i *InstallerExec) PromoteConfigExperiment(ctx context.Context, pkg string) (err error)
- func (i *InstallerExec) PromoteExperiment(ctx context.Context, pkg string) (err error)
- func (i *InstallerExec) Purge(_ context.Context)
- func (i *InstallerExec) Remove(ctx context.Context, pkg string) (err error)
- func (i *InstallerExec) RemoveConfigExperiment(ctx context.Context, pkg string) (err error)
- func (i *InstallerExec) RemoveExperiment(ctx context.Context, pkg string) (err error)
- func (i *InstallerExec) Setup(ctx context.Context) (err error)
- func (i *InstallerExec) State(pkg string) (repository.State, error)
- func (i *InstallerExec) States() (map[string]repository.State, error)
- func (i *InstallerExec) UninstrumentAPMInjector(ctx context.Context, method string) (err error)
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) 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) 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 ¶
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.