installpackage

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const ProxyVersion = "v1.1.2" // renovate: depName=aquaproj/aqua-proxy

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadParam added in v1.18.0

type DownloadParam struct {
	Package *config.Package
	Dest    string
	Asset   string
}

type Executor added in v1.15.0

type Executor interface {
	GoBuild(ctx context.Context, exePath, src, exeDir string) (int, error)
	GoInstall(ctx context.Context, path, gobin string) (int, error)
}

type Installer

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

func New

func New(param *config.Param, downloader domain.PackageDownloader, rt *runtime.Runtime, fs afero.Fs, linker link.Linker, executor Executor) *Installer

func (*Installer) InstallPackage

func (inst *Installer) InstallPackage(ctx context.Context, pkg *config.Package, logE *logrus.Entry) error

func (*Installer) InstallPackages

func (inst *Installer) InstallPackages(ctx context.Context, cfg *aqua.Config, registries map[string]*registry.Config, logE *logrus.Entry) error

func (*Installer) InstallProxy

func (inst *Installer) InstallProxy(ctx context.Context, logE *logrus.Entry) error

func (*Installer) ReadChecksumFile added in v1.18.0

func (inst *Installer) ReadChecksumFile(fs afero.Fs, p string) error

func (*Installer) UpdateChecksumFile added in v1.18.0

func (inst *Installer) UpdateChecksumFile(fs afero.Fs, p string) error

Jump to

Keyboard shortcuts

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