Documentation ¶
Overview ¶
Package exec provides an implementation of the Installer interface that uses the installer binary.
Index ¶
- type InstallerExec
- func (i *InstallerExec) GarbageCollect(ctx context.Context) (err error)
- func (i *InstallerExec) Install(ctx context.Context, url string) (err error)
- func (i *InstallerExec) InstallExperiment(ctx context.Context, url 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) RemoveExperiment(ctx context.Context, pkg string) (err error)
- func (i *InstallerExec) State(pkg string) (repository.State, error)
- func (i *InstallerExec) States() (map[string]repository.State, 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(installerBinPath string, registry string, registryAuth string, apiKey string, site string) *InstallerExec
NewInstallerExec returns a new InstallerExec.
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) (err error)
Install installs a package.
func (*InstallerExec) InstallExperiment ¶
func (i *InstallerExec) InstallExperiment(ctx context.Context, url string) (err error)
InstallExperiment installs an experiment.
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) RemoveExperiment ¶
func (i *InstallerExec) RemoveExperiment(ctx context.Context, pkg string) (err error)
RemoveExperiment removes an experiment.
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.
Click to show internal directories.
Click to hide internal directories.