Documentation ¶
Index ¶
- Constants
- func ProxyChecksums() map[string]string
- type CargoPackageInstaller
- type CargoPackageInstallerImpl
- type ChecksumCalculator
- type Cleaner
- type Cosign
- type DownloadParam
- type Executor
- type GoInstallInstaller
- type GoInstallInstallerImpl
- type Installer
- type InstallerImpl
- func (inst *InstallerImpl) Copy(dest, src string) error
- func (inst *InstallerImpl) InstallAqua(ctx context.Context, logE *logrus.Entry, version string) error
- func (inst *InstallerImpl) InstallPackage(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackage) error
- func (inst *InstallerImpl) InstallPackages(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackages) error
- func (inst *InstallerImpl) InstallProxy(ctx context.Context, logE *logrus.Entry) error
- func (inst *InstallerImpl) SetCopyDir(copyDir string)
- func (inst *InstallerImpl) WaitExe(ctx context.Context, logE *logrus.Entry, exePath string) error
- type MockCargoPackageInstaller
- type MockGoInstallInstaller
- type ParamInstallPackage
- type ParamInstallPackages
- type ParamVerifyChecksum
- type SLSAVerifier
Constants ¶
View Source
const ProxyVersion = "v1.2.0" // renovate: depName=aquaproj/aqua-proxy
Variables ¶
This section is empty.
Functions ¶
func ProxyChecksums ¶
Types ¶
type CargoPackageInstaller ¶ added in v2.8.0
type CargoPackageInstallerImpl ¶ added in v2.8.0
type CargoPackageInstallerImpl struct {
// contains filtered or unexported fields
}
func NewCargoPackageInstallerImpl ¶ added in v2.8.0
func NewCargoPackageInstallerImpl(exec Executor, cleaner Cleaner) *CargoPackageInstallerImpl
type ChecksumCalculator ¶
type DownloadParam ¶
type Executor ¶
type Executor interface { HdiutilAttach(ctx context.Context, dmgPath, mountPoint string) (int, error) HdiutilDetach(ctx context.Context, mountPath string) (int, error) UnarchivePkg(ctx context.Context, pkgFilePath, dest string) (int, error) Exec(ctx context.Context, exePath string, args ...string) (int, error) ExecWithEnvs(ctx context.Context, exePath string, args, envs []string) (int, error) }
type GoInstallInstaller ¶ added in v2.7.0
type GoInstallInstallerImpl ¶ added in v2.7.0
type GoInstallInstallerImpl struct {
// contains filtered or unexported fields
}
func NewGoInstallInstallerImpl ¶ added in v2.7.0
func NewGoInstallInstallerImpl(exec Executor) *GoInstallInstallerImpl
type InstallerImpl ¶
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, chkDL download.ChecksumDownloader, chkCalc ChecksumCalculator, unarchiver unarchive.Unarchiver, policyChecker *policy.Checker, cosignVerifier cosign.Verifier, slsaVerifier slsa.Verifier, goInstallInstaller GoInstallInstaller, cargoPackageInstaller CargoPackageInstaller) *InstallerImpl
func (*InstallerImpl) Copy ¶
func (inst *InstallerImpl) Copy(dest, src string) error
func (*InstallerImpl) InstallAqua ¶
func (*InstallerImpl) InstallPackage ¶
func (inst *InstallerImpl) InstallPackage(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackage) error
func (*InstallerImpl) InstallPackages ¶
func (inst *InstallerImpl) InstallPackages(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackages) error
func (*InstallerImpl) InstallProxy ¶
func (*InstallerImpl) SetCopyDir ¶
func (inst *InstallerImpl) SetCopyDir(copyDir string)
type MockCargoPackageInstaller ¶ added in v2.8.0
type MockCargoPackageInstaller struct {
Err error
}
type MockGoInstallInstaller ¶ added in v2.7.0
type MockGoInstallInstaller struct {
Err error
}
type ParamInstallPackage ¶
type ParamInstallPackages ¶
type ParamVerifyChecksum ¶
type SLSAVerifier ¶
type SLSAVerifier struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.