installpackage

package
v1.30.2-3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 24 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 ChecksumCalculator added in v1.20.0

type ChecksumCalculator interface {
	Calculate(fs afero.Fs, filename, algorithm string) (string, error)
}

type Cosign added in v1.26.2

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

type DownloadParam added in v1.18.0

type DownloadParam struct {
	Package         *config.Package
	Checksums       *checksum.Checksums
	Checksum        *checksum.Checksum
	Dest            string
	Asset           string
	RequireChecksum bool
}

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 interface {
	InstallPackage(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackage) error
	InstallPackages(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackages) error
	InstallProxy(ctx context.Context, logE *logrus.Entry) error
}

type InstallerImpl added in v1.29.0

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

func New

func New(param *config.Param, downloader download.ClientAPI, rt *runtime.Runtime, fs afero.Fs, linker domain.Linker, executor Executor, chkDL download.ChecksumDownloader, chkCalc ChecksumCalculator, unarchiver Unarchiver, policyChecker policy.Checker, cosignVerifier cosign.Verifier, slsaVerifier slsa.Verifier) *InstallerImpl

func (*InstallerImpl) Copy added in v1.29.0

func (inst *InstallerImpl) Copy(dest, src string) error

func (*InstallerImpl) InstallAqua added in v1.29.0

func (inst *InstallerImpl) InstallAqua(ctx context.Context, logE *logrus.Entry, version string) error

func (*InstallerImpl) InstallPackage added in v1.29.0

func (inst *InstallerImpl) InstallPackage(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackage) error

func (*InstallerImpl) InstallPackages added in v1.29.0

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

func (*InstallerImpl) InstallProxy added in v1.29.0

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

func (*InstallerImpl) SetCopyDir added in v1.29.0

func (inst *InstallerImpl) SetCopyDir(copyDir string)

func (*InstallerImpl) WaitExe added in v1.29.0

func (inst *InstallerImpl) WaitExe(ctx context.Context, logE *logrus.Entry, exePath string) error

type MockUnarchiver added in v1.22.0

type MockUnarchiver struct {
	Err error
}

func (*MockUnarchiver) Unarchive added in v1.22.0

func (unarchiver *MockUnarchiver) Unarchive(src *unarchive.File, dest string, logE *logrus.Entry, fs afero.Fs, prgOpts *unarchive.ProgressBarOpts) error

type ParamInstallPackage added in v1.29.0

type ParamInstallPackage struct {
	Pkg             *config.Package
	Checksums       *checksum.Checksums
	RequireChecksum bool
	PolicyConfigs   []*policy.Config
	ConfigFileDir   string
	CosignExePath   string
	Checksum        *checksum.Checksum
}

type ParamInstallPackages added in v1.29.0

type ParamInstallPackages struct {
	ConfigFilePath string
	Config         *aqua.Config
	Registries     map[string]*registry.Config
	Tags           map[string]struct{}
	ExcludedTags   map[string]struct{}
	SkipLink       bool
	PolicyConfigs  []*policy.Config
	Checksums      *checksum.Checksums
}

type ParamVerifyChecksum added in v1.20.0

type ParamVerifyChecksum struct {
	ChecksumID      string
	Checksum        *checksum.Checksum
	Checksums       *checksum.Checksums
	Pkg             *config.Package
	AssetName       string
	Body            io.Reader
	TempDir         string
	SkipSetChecksum bool
}

type Unarchiver added in v1.20.0

type Unarchiver interface {
	Unarchive(src *unarchive.File, dest string, logE *logrus.Entry, fs afero.Fs, prgOpts *unarchive.ProgressBarOpts) error
}

Jump to

Keyboard shortcuts

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