Documentation ¶
Index ¶
- Constants
- func ProxyChecksums() map[string]string
- type CargoPackageInstaller
- type CargoPackageInstallerImpl
- type ChecksumCalculator
- type Cleaner
- type Cosign
- type DownloadParam
- type Executor
- type GoBuildInstaller
- type GoBuildInstallerImpl
- type GoInstallInstaller
- type GoInstallInstallerImpl
- type Installer
- type InstallerImpl
- func (is *InstallerImpl) Copy(dest, src string) error
- func (is *InstallerImpl) InstallAqua(ctx context.Context, logE *logrus.Entry, version string) error
- func (is *InstallerImpl) InstallPackage(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackage) error
- func (is *InstallerImpl) InstallPackages(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackages) error
- func (is *InstallerImpl) InstallProxy(ctx context.Context, logE *logrus.Entry) error
- func (is *InstallerImpl) SetCopyDir(copyDir string)
- func (is *InstallerImpl) WaitExe(ctx context.Context, logE *logrus.Entry, exePath string) error
- type MockCargoPackageInstaller
- type MockGoBuildInstaller
- type MockGoInstallInstaller
- type ParamInstallPackage
- type ParamInstallPackages
- type ParamVerifyChecksum
- type SLSAVerifier
Constants ¶
View Source
const ProxyVersion = "v1.2.4" // 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) ExecCommand(cmd *exec.Cmd) (int, error) ExecWithEnvs(ctx context.Context, exePath string, args, envs []string) (int, error) }
type GoBuildInstaller ¶ added in v2.11.0
type GoBuildInstallerImpl ¶ added in v2.11.0
type GoBuildInstallerImpl struct {
// contains filtered or unexported fields
}
func NewGoBuildInstallerImpl ¶ added in v2.11.0
func NewGoBuildInstallerImpl(exec Executor) *GoBuildInstallerImpl
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, cosignVerifier cosign.Verifier, slsaVerifier slsa.Verifier, goInstallInstaller GoInstallInstaller, goBuildInstaller GoBuildInstaller, cargoPackageInstaller CargoPackageInstaller) *InstallerImpl
func (*InstallerImpl) Copy ¶
func (is *InstallerImpl) Copy(dest, src string) error
func (*InstallerImpl) InstallAqua ¶
func (*InstallerImpl) InstallPackage ¶
func (is *InstallerImpl) InstallPackage(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackage) error
func (*InstallerImpl) InstallPackages ¶
func (is *InstallerImpl) InstallPackages(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackages) error
func (*InstallerImpl) InstallProxy ¶
func (*InstallerImpl) SetCopyDir ¶
func (is *InstallerImpl) SetCopyDir(copyDir string)
type MockCargoPackageInstaller ¶ added in v2.8.0
type MockCargoPackageInstaller struct {
Err error
}
type MockGoBuildInstaller ¶ added in v2.11.0
type MockGoBuildInstaller 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.