cp

package
v2.9.0-1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 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.Reader, policyConfigFinder policy.ConfigFinder) *Controller

func (*Controller) Copy

func (ctrl *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 (inst *MockInstaller) Install(ctx context.Context, logE *logrus.Entry, param *config.Param) error

type MockPackageInstaller

type MockPackageInstaller struct{}

func (*MockPackageInstaller) Copy

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

func (*MockPackageInstaller) InstallPackage

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

func (*MockPackageInstaller) InstallPackages

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

func (*MockPackageInstaller) SetCopyDir

func (inst *MockPackageInstaller) SetCopyDir(copyDir string)

func (*MockPackageInstaller) WaitExe

func (inst *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
}

Jump to

Keyboard shortcuts

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