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
- type PolicyReader
- type WhichController
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 WhichController, installer Installer, policyReader PolicyReader) *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 }
type PolicyReader ¶ added in v2.16.3
Click to show internal directories.
Click to hide internal directories.