cp

package
v1.36.0-1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 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 which.Controller, installer Installer, policyConfigReader policy.ConfigReader) *Controller

func (*Controller) Copy

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

type Installer added in v1.20.0

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

type MockInstaller added in v1.22.0

type MockInstaller struct {
	Err error
}

func (*MockInstaller) Install added in v1.22.0

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

type MockPackageInstaller added in v1.22.0

type MockPackageInstaller struct{}

func (*MockPackageInstaller) Copy added in v1.22.0

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

func (*MockPackageInstaller) InstallPackage added in v1.22.0

func (inst *MockPackageInstaller) InstallPackage(ctx context.Context, logE *logrus.Entry, param *installpackage.ParamInstallPackage) error

func (*MockPackageInstaller) InstallPackages added in v1.22.0

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

func (*MockPackageInstaller) SetCopyDir added in v1.22.0

func (inst *MockPackageInstaller) SetCopyDir(copyDir string)

func (*MockPackageInstaller) WaitExe added in v1.22.0

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

type PackageInstaller added in v1.20.0

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
}

Jump to

Keyboard shortcuts

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