cp

package
v2.39.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFinder

type ConfigFinder interface {
	Finds(wd, configFilePath string) []string
}

type Controller

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

func New

func New(param *config.Param, pkgInstaller PackageInstaller, fs afero.Fs, rt *runtime.Runtime, whichCtrl WhichController, installer Installer, policyReader PolicyReader) *Controller

func (*Controller) Copy

func (c *Controller) Copy(ctx context.Context, logE *logrus.Entry, param *config.Param) error

type Installer

type Installer interface {
	Install(ctx context.Context, logE *logrus.Entry, param *config.Param) error
}

type MockInstaller

type MockInstaller struct {
	Err error
}

func (*MockInstaller) Install

func (is *MockInstaller) Install(ctx context.Context, logE *logrus.Entry, param *config.Param) error

type MockPackageInstaller

type MockPackageInstaller struct{}

func (*MockPackageInstaller) Copy

func (is *MockPackageInstaller) Copy(dest, src string) error

func (*MockPackageInstaller) InstallPackage

func (*MockPackageInstaller) InstallPackages

func (is *MockPackageInstaller) InstallPackages(ctx context.Context, logE *logrus.Entry, param *installpackage.ParamInstallPackages) error

func (*MockPackageInstaller) SetCopyDir

func (is *MockPackageInstaller) SetCopyDir(copyDir string)

func (*MockPackageInstaller) WaitExe

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

type PackageInstaller

type PackageInstaller interface {
	InstallPackage(ctx context.Context, logE *logrus.Entry, param *installpackage.ParamInstallPackage) error
	InstallPackages(ctx context.Context, logE *logrus.Entry, param *installpackage.ParamInstallPackages) error
	SetCopyDir(copyDir string)
	Copy(dest, src string) error
	WaitExe(ctx context.Context, logE *logrus.Entry, exePath string) error
}

type PolicyReader added in v2.16.3

type PolicyReader interface {
	Read(policyFilePaths []string) ([]*policy.Config, error)
	Append(logE *logrus.Entry, aquaYAMLPath string, policies []*policy.Config, globalPolicyPaths map[string]struct{}) ([]*policy.Config, error)
}

type WhichController added in v2.16.4

type WhichController interface {
	Which(ctx context.Context, logE *logrus.Entry, param *config.Param, exeName string) (*which.FindResult, error)
}

Jump to

Keyboard shortcuts

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