Versions in this module Expand all Collapse all v2 v2.10.1 Aug 18, 2023 v2.9.0 Aug 18, 2023 Changes in this version + const ProxyVersion + func ProxyChecksums() map[string]string + type CargoPackageInstaller interface + Install func(ctx context.Context, logE *logrus.Entry, crate, version, root string, ...) error + type CargoPackageInstallerImpl struct + func NewCargoPackageInstallerImpl(exec Executor, cleaner Cleaner) *CargoPackageInstallerImpl + func (inst *CargoPackageInstallerImpl) Install(ctx context.Context, logE *logrus.Entry, crate, version, root string, ...) error + type ChecksumCalculator interface + Calculate func(fs afero.Fs, filename, algorithm string) (string, error) + type Cleaner interface + RemoveAll func(name string) (err error) + type Cosign struct + type DownloadParam struct + Asset string + Checksum *checksum.Checksum + Checksums *checksum.Checksums + Dest string + Package *config.Package + RequireChecksum bool + type Executor interface + Exec func(ctx context.Context, exePath string, args ...string) (int, error) + ExecCommand func(cmd *exec.Cmd) (int, error) + ExecWithEnvs func(ctx context.Context, exePath string, args, envs []string) (int, error) + HdiutilAttach func(ctx context.Context, dmgPath, mountPoint string) (int, error) + HdiutilDetach func(ctx context.Context, mountPath string) (int, error) + UnarchivePkg func(ctx context.Context, pkgFilePath, dest string) (int, error) + type GoBuildInstaller interface + Install func(ctx context.Context, exePath, exeDir, src string) error + type GoBuildInstallerImpl struct + func NewGoBuildInstallerImpl(exec Executor) *GoBuildInstallerImpl + func (inst *GoBuildInstallerImpl) Install(ctx context.Context, exePath, exeDir, src string) error + type GoInstallInstaller interface + Install func(ctx context.Context, path, gobin string) error + type GoInstallInstallerImpl struct + func NewGoInstallInstallerImpl(exec Executor) *GoInstallInstallerImpl + func (inst *GoInstallInstallerImpl) Install(ctx context.Context, path, gobin string) error + type Installer interface + InstallPackage func(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackage) error + InstallPackages func(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackages) error + InstallProxy func(ctx context.Context, logE *logrus.Entry) error + type InstallerImpl struct + func New(param *config.Param, downloader download.ClientAPI, rt *runtime.Runtime, ...) *InstallerImpl + func (inst *InstallerImpl) Copy(dest, src string) error + func (inst *InstallerImpl) InstallKhulnasoft(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 struct + Err error + func (mock *MockCargoPackageInstaller) Install(ctx context.Context, logE *logrus.Entry, crate, version, root string, ...) error + type MockGoBuildInstaller struct + Err error + func (mock *MockGoBuildInstaller) Install(ctx context.Context, exePath, exeDir, src string) error + type MockGoInstallInstaller struct + Err error + func (mock *MockGoInstallInstaller) Install(ctx context.Context, path, gobin string) error + type ParamInstallPackage struct + Checksum *checksum.Checksum + Checksums *checksum.Checksums + ConfigFileDir string + CosignExePath string + DisablePolicy bool + Pkg *config.Package + PolicyConfigs []*policy.Config + RequireChecksum bool + type ParamInstallPackages struct + Checksums *checksum.Checksums + Config *khulnasoft.Config + ConfigFilePath string + ExcludedTags map[string]struct{} + PolicyConfigs []*policy.Config + Registries map[string]*registry.Config + RequireChecksum bool + SkipLink bool + Tags map[string]struct{} + type ParamVerifyChecksum struct + AssetName string + Checksum *checksum.Checksum + ChecksumID string + Checksums *checksum.Checksums + Pkg *config.Package + SkipSetChecksum bool + TempFilePath string + type SLSAVerifier struct