conditions

package
v0.0.0-...-648786e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL