Documentation ¶
Overview ¶
Package statusupdater is a generated GoMock package.
Index ¶
- type MockModuleStatusUpdater
- type MockModuleStatusUpdaterMockRecorder
- type MockPreflightStatusUpdater
- func (m *MockPreflightStatusUpdater) EXPECT() *MockPreflightStatusUpdaterMockRecorder
- func (m *MockPreflightStatusUpdater) PreflightPresetStatuses(ctx context.Context, pv *v1beta1.PreflightValidation, ...) error
- func (m *MockPreflightStatusUpdater) PreflightSetVerificationStage(ctx context.Context, preflight *v1beta1.PreflightValidation, ...) error
- func (m *MockPreflightStatusUpdater) PreflightSetVerificationStatus(ctx context.Context, preflight *v1beta1.PreflightValidation, ...) error
- type MockPreflightStatusUpdaterMockRecorder
- func (mr *MockPreflightStatusUpdaterMockRecorder) PreflightPresetStatuses(ctx, pv, existingModules, newModules interface{}) *gomock.Call
- func (mr *MockPreflightStatusUpdaterMockRecorder) PreflightSetVerificationStage(ctx, preflight, moduleName, stage interface{}) *gomock.Call
- func (mr *MockPreflightStatusUpdaterMockRecorder) PreflightSetVerificationStatus(ctx, preflight, moduleName, verificationStatus, message interface{}) *gomock.Call
- type ModuleStatusUpdater
- type PreflightStatusUpdater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockModuleStatusUpdater ¶
type MockModuleStatusUpdater struct {
// contains filtered or unexported fields
}
MockModuleStatusUpdater is a mock of ModuleStatusUpdater interface.
func NewMockModuleStatusUpdater ¶
func NewMockModuleStatusUpdater(ctrl *gomock.Controller) *MockModuleStatusUpdater
NewMockModuleStatusUpdater creates a new mock instance.
func (*MockModuleStatusUpdater) EXPECT ¶
func (m *MockModuleStatusUpdater) EXPECT() *MockModuleStatusUpdaterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockModuleStatusUpdaterMockRecorder ¶
type MockModuleStatusUpdaterMockRecorder struct {
// contains filtered or unexported fields
}
MockModuleStatusUpdaterMockRecorder is the mock recorder for MockModuleStatusUpdater.
func (*MockModuleStatusUpdaterMockRecorder) ModuleUpdateStatus ¶
func (mr *MockModuleStatusUpdaterMockRecorder) ModuleUpdateStatus(ctx, mod, kernelMappingNodes, targetedNodes, dsByKernelVersion interface{}) *gomock.Call
ModuleUpdateStatus indicates an expected call of ModuleUpdateStatus.
type MockPreflightStatusUpdater ¶
type MockPreflightStatusUpdater struct {
// contains filtered or unexported fields
}
MockPreflightStatusUpdater is a mock of PreflightStatusUpdater interface.
func NewMockPreflightStatusUpdater ¶
func NewMockPreflightStatusUpdater(ctrl *gomock.Controller) *MockPreflightStatusUpdater
NewMockPreflightStatusUpdater creates a new mock instance.
func (*MockPreflightStatusUpdater) EXPECT ¶
func (m *MockPreflightStatusUpdater) EXPECT() *MockPreflightStatusUpdaterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPreflightStatusUpdater) PreflightPresetStatuses ¶
func (m *MockPreflightStatusUpdater) PreflightPresetStatuses(ctx context.Context, pv *v1beta1.PreflightValidation, existingModules sets.String, newModules []string) error
PreflightPresetStatuses mocks base method.
func (*MockPreflightStatusUpdater) PreflightSetVerificationStage ¶
func (m *MockPreflightStatusUpdater) PreflightSetVerificationStage(ctx context.Context, preflight *v1beta1.PreflightValidation, moduleName, stage string) error
PreflightSetVerificationStage mocks base method.
func (*MockPreflightStatusUpdater) PreflightSetVerificationStatus ¶
func (m *MockPreflightStatusUpdater) PreflightSetVerificationStatus(ctx context.Context, preflight *v1beta1.PreflightValidation, moduleName, verificationStatus, message string) error
PreflightSetVerificationStatus mocks base method.
type MockPreflightStatusUpdaterMockRecorder ¶
type MockPreflightStatusUpdaterMockRecorder struct {
// contains filtered or unexported fields
}
MockPreflightStatusUpdaterMockRecorder is the mock recorder for MockPreflightStatusUpdater.
func (*MockPreflightStatusUpdaterMockRecorder) PreflightPresetStatuses ¶
func (mr *MockPreflightStatusUpdaterMockRecorder) PreflightPresetStatuses(ctx, pv, existingModules, newModules interface{}) *gomock.Call
PreflightPresetStatuses indicates an expected call of PreflightPresetStatuses.
func (*MockPreflightStatusUpdaterMockRecorder) PreflightSetVerificationStage ¶
func (mr *MockPreflightStatusUpdaterMockRecorder) PreflightSetVerificationStage(ctx, preflight, moduleName, stage interface{}) *gomock.Call
PreflightSetVerificationStage indicates an expected call of PreflightSetVerificationStage.
func (*MockPreflightStatusUpdaterMockRecorder) PreflightSetVerificationStatus ¶
func (mr *MockPreflightStatusUpdaterMockRecorder) PreflightSetVerificationStatus(ctx, preflight, moduleName, verificationStatus, message interface{}) *gomock.Call
PreflightSetVerificationStatus indicates an expected call of PreflightSetVerificationStatus.
type ModuleStatusUpdater ¶
type ModuleStatusUpdater interface { ModuleUpdateStatus(ctx context.Context, mod *kmmv1beta1.Module, kernelMappingNodes []v1.Node, targetedNodes []v1.Node, dsByKernelVersion map[string]*appsv1.DaemonSet) error }
func NewModuleStatusUpdater ¶
func NewModuleStatusUpdater(client client.Client, daemonAPI daemonset.DaemonSetCreator, metricsAPI metrics.Metrics) ModuleStatusUpdater
type PreflightStatusUpdater ¶
type PreflightStatusUpdater interface { PreflightPresetStatuses(ctx context.Context, pv *kmmv1beta1.PreflightValidation, existingModules sets.String, newModules []string) error PreflightSetVerificationStatus(ctx context.Context, preflight *kmmv1beta1.PreflightValidation, moduleName string, verificationStatus string, message string) error PreflightSetVerificationStage(ctx context.Context, preflight *kmmv1beta1.PreflightValidation, moduleName string, stage string) error }
func NewPreflightStatusUpdater ¶
func NewPreflightStatusUpdater(client client.Client) PreflightStatusUpdater