Documentation ¶
Index ¶
- type ConfigFinder
- type Controller
- type Installer
- type MockInstaller
- type MockPackageInstaller
- func (is *MockPackageInstaller) Copy(dest, src string) error
- func (is *MockPackageInstaller) InstallPackage(ctx context.Context, logE *logrus.Entry, ...) error
- func (is *MockPackageInstaller) InstallPackages(ctx context.Context, logE *logrus.Entry, ...) error
- func (is *MockPackageInstaller) SetCopyDir(copyDir string)
- func (is *MockPackageInstaller) WaitExe(ctx context.Context, logE *logrus.Entry, exePath string) error
- type PackageInstaller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigFinder ¶
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
type MockInstaller ¶
type MockInstaller struct {
Err error
}
type MockPackageInstaller ¶
type MockPackageInstaller struct{}
func (*MockPackageInstaller) Copy ¶
func (is *MockPackageInstaller) Copy(dest, src string) error
func (*MockPackageInstaller) InstallPackage ¶
func (is *MockPackageInstaller) InstallPackage(ctx context.Context, logE *logrus.Entry, param *installpackage.ParamInstallPackage) error
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)
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 }
Click to show internal directories.
Click to hide internal directories.