exec

package
v0.0.0-...-d00e9c6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 8 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(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.

Jump to

Keyboard shortcuts

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