installpackage

package
v1.19.0-1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 20 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
	Checksums *checksum.Checksums
	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, chkDL domain.ChecksumDownloader) *Installer

func (*Installer) InstallPackage

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

func (*Installer) InstallPackages

func (inst *Installer) InstallPackages(ctx context.Context, logE *logrus.Entry, param *domain.ParamInstallPackages) error

func (*Installer) InstallProxy

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

Jump to

Keyboard shortcuts

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