Documentation ¶
Index ¶
- type ConfigFinder
- type Controller
- type Installer
- type MockInstaller
- type MockPackageInstaller
- func (inst *MockPackageInstaller) Copy(dest, src string) error
- func (inst *MockPackageInstaller) InstallPackage(ctx context.Context, logE *logrus.Entry, param *domain.ParamInstallPackage) error
- func (inst *MockPackageInstaller) InstallPackages(ctx context.Context, logE *logrus.Entry, param *domain.ParamInstallPackages) error
- func (inst *MockPackageInstaller) SetCopyDir(copyDir string)
- func (inst *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 domain.WhichController, installer Installer, policyConfigReader domain.PolicyConfigReader) *Controller
type MockInstaller ¶ added in v1.22.0
type MockInstaller struct {
Err 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 *domain.ParamInstallPackage) error
func (*MockPackageInstaller) InstallPackages ¶ added in v1.22.0
func (inst *MockPackageInstaller) InstallPackages(ctx context.Context, logE *logrus.Entry, param *domain.ParamInstallPackages) error
func (*MockPackageInstaller) SetCopyDir ¶ added in v1.22.0
func (inst *MockPackageInstaller) SetCopyDir(copyDir string)
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 }
Click to show internal directories.
Click to hide internal directories.