Documentation ¶
Index ¶
- Constants
- func ProxyChecksums() map[string]string
- type CargoPackageInstaller
- type CargoPackageInstallerImpl
- type ChecksumCalculator
- type Cleaner
- type Cosign
- type CosignVerifier
- type DownloadParam
- type Executor
- type GoBuildInstaller
- type GoBuildInstallerImpl
- type GoInstallInstaller
- type GoInstallInstallerImpl
- type Installer
- func (is *Installer) Copy(dest, src string) error
- func (is *Installer) InstallAqua(ctx context.Context, logE *logrus.Entry, version string) error
- func (is *Installer) InstallPackage(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackage) error
- func (is *Installer) InstallPackages(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackages) error
- func (is *Installer) InstallProxy(ctx context.Context, logE *logrus.Entry) error
- func (is *Installer) SetCopyDir(copyDir string)
- func (is *Installer) WaitExe(ctx context.Context, logE *logrus.Entry, exePath string) error
- type Linker
- type MockCargoPackageInstaller
- type MockGoBuildInstaller
- type MockGoInstallInstaller
- type ParamInstallPackage
- type ParamInstallPackages
- type ParamVerifyChecksum
- type SLSAVerifier
- type SLSAVerifierInstaller
- type Unarchiver
Constants ¶
View Source
const ProxyVersion = "v1.2.5" // 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 CosignVerifier ¶ added in v2.16.3
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 Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func New ¶
func New(param *config.Param, downloader download.ClientAPI, rt *runtime.Runtime, fs afero.Fs, linker Linker, chkDL download.ChecksumDownloader, chkCalc ChecksumCalculator, unarchiver Unarchiver, cosignVerifier CosignVerifier, slsaVerifier SLSAVerifier, goInstallInstaller GoInstallInstaller, goBuildInstaller GoBuildInstaller, cargoPackageInstaller CargoPackageInstaller) *Installer
func (*Installer) InstallAqua ¶ added in v2.16.4
func (*Installer) InstallPackage ¶
func (*Installer) InstallPackages ¶
func (*Installer) InstallProxy ¶
func (*Installer) SetCopyDir ¶ added in v2.16.4
type Linker ¶ added in v2.16.3
type Linker interface { Lstat(s string) (os.FileInfo, error) Symlink(dest, src string) error Readlink(src string) (string, error) }
func NewMockLinker ¶ added in v2.16.3
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 SLSAVerifierInstaller ¶ added in v2.16.3
type SLSAVerifierInstaller struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.