Documentation ¶
Overview ¶
Package conditions is a generated GoMock package.
Index ¶
Constants ¶
View Source
const ( Ready = "Ready" Errored = "Errored" ReasonModuleFailed = "ModuleFailed" ReasonConflictingNodeSelector = "ConflictingNodeSelector" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUpdater ¶
type MockUpdater struct {
// contains filtered or unexported fields
}
MockUpdater is a mock of Updater interface.
func NewMockUpdater ¶
func NewMockUpdater(ctrl *gomock.Controller) *MockUpdater
NewMockUpdater creates a new mock instance.
func (*MockUpdater) EXPECT ¶
func (m *MockUpdater) EXPECT() *MockUpdaterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUpdater) SetConditionsErrored ¶
func (m *MockUpdater) SetConditionsErrored(ctx context.Context, cr *v1alpha1.DeviceConfig, reason, message string) error
SetConditionsErrored mocks base method.
func (*MockUpdater) SetConditionsReady ¶
func (m *MockUpdater) SetConditionsReady(ctx context.Context, cr *v1alpha1.DeviceConfig, reason, message string) error
SetConditionsReady mocks base method.
type MockUpdaterMockRecorder ¶
type MockUpdaterMockRecorder struct {
// contains filtered or unexported fields
}
MockUpdaterMockRecorder is the mock recorder for MockUpdater.
func (*MockUpdaterMockRecorder) SetConditionsErrored ¶
func (mr *MockUpdaterMockRecorder) SetConditionsErrored(ctx, cr, reason, message interface{}) *gomock.Call
SetConditionsErrored indicates an expected call of SetConditionsErrored.
func (*MockUpdaterMockRecorder) SetConditionsReady ¶
func (mr *MockUpdaterMockRecorder) SetConditionsReady(ctx, cr, reason, message interface{}) *gomock.Call
SetConditionsReady indicates an expected call of SetConditionsReady.
type Updater ¶
type Updater interface { SetConditionsReady(ctx context.Context, cr *examplecomv1alpha1.DeviceConfig, reason, message string) error SetConditionsErrored(ctx context.Context, cr *examplecomv1alpha1.DeviceConfig, reason, message string) error }
func NewUpdater ¶
func NewUpdater(sw client.StatusWriter) Updater
Click to show internal directories.
Click to hide internal directories.