cp

package
v1.20.3-0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 13 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 domain.WhichController, installer Installer) *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 PackageInstaller added in v1.20.0

type PackageInstaller interface {
	InstallPackage(ctx context.Context, logE *logrus.Entry, param *domain.ParamInstallPackage) error
	InstallPackages(ctx context.Context, logE *logrus.Entry, param *domain.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