state

package
v0.0.0-...-c9e8fde Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package state is a generated GoMock package.

Index

Constants

View Source
const (
	Ready       = "SpecialResourceIsReady"
	Progressing = "Progressing"
	Errored     = "ErrorHasOccurred"

	Success                       = "Success"
	HandlingState                 = "HandlingState"
	MarkedForDeletion             = "MarkedForDeletion"
	ChartFailure                  = "ChartFailure"
	DependencyChartFailure        = "DependencyChartFailure"
	FailedToStoreDependencyInfo   = "FailedToStoreDependencyInfo"
	FailedToCreateDependencySR    = "FailedToCreateDependencySR"
	FailedToDeployDependencyChart = "FailedToDeployDependencyChart"
	FailedToDeployChart           = "FailedToDeployChart"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStatusUpdater

type MockStatusUpdater struct {
	// contains filtered or unexported fields
}

MockStatusUpdater is a mock of StatusUpdater interface.

func NewMockStatusUpdater

func NewMockStatusUpdater(ctrl *gomock.Controller) *MockStatusUpdater

NewMockStatusUpdater creates a new mock instance.

func (*MockStatusUpdater) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStatusUpdater) SetAsErrored

func (m *MockStatusUpdater) SetAsErrored(ctx context.Context, sr *v1beta1.SpecialResource, reason, message string) error

SetAsErrored mocks base method.

func (*MockStatusUpdater) SetAsProgressing

func (m *MockStatusUpdater) SetAsProgressing(ctx context.Context, sr *v1beta1.SpecialResource, reason, message string) error

SetAsProgressing mocks base method.

func (*MockStatusUpdater) SetAsReady

func (m *MockStatusUpdater) SetAsReady(ctx context.Context, sr *v1beta1.SpecialResource, reason, message string) error

SetAsReady mocks base method.

func (*MockStatusUpdater) SetVerificationStatus

func (m *MockStatusUpdater) SetVerificationStatus(ctx context.Context, pv *v1beta1.PreflightValidation, status *v1beta1.SRStatus, verificationStatus, message string) error

SetVerificationStatus mocks base method.

type MockStatusUpdaterMockRecorder

type MockStatusUpdaterMockRecorder struct {
	// contains filtered or unexported fields
}

MockStatusUpdaterMockRecorder is the mock recorder for MockStatusUpdater.

func (*MockStatusUpdaterMockRecorder) SetAsErrored

func (mr *MockStatusUpdaterMockRecorder) SetAsErrored(ctx, sr, reason, message interface{}) *gomock.Call

SetAsErrored indicates an expected call of SetAsErrored.

func (*MockStatusUpdaterMockRecorder) SetAsProgressing

func (mr *MockStatusUpdaterMockRecorder) SetAsProgressing(ctx, sr, reason, message interface{}) *gomock.Call

SetAsProgressing indicates an expected call of SetAsProgressing.

func (*MockStatusUpdaterMockRecorder) SetAsReady

func (mr *MockStatusUpdaterMockRecorder) SetAsReady(ctx, sr, reason, message interface{}) *gomock.Call

SetAsReady indicates an expected call of SetAsReady.

func (*MockStatusUpdaterMockRecorder) SetVerificationStatus

func (mr *MockStatusUpdaterMockRecorder) SetVerificationStatus(ctx, pv, status, verificationStatus, message interface{}) *gomock.Call

SetVerificationStatus indicates an expected call of SetVerificationStatus.

type StatusUpdater

type StatusUpdater interface {
	SetAsReady(ctx context.Context, sr *v1beta1.SpecialResource, reason, message string) error
	SetAsProgressing(ctx context.Context, sr *v1beta1.SpecialResource, reason, message string) error
	SetAsErrored(ctx context.Context, sr *v1beta1.SpecialResource, reason, message string) error
	SetVerificationStatus(ctx context.Context, pv *v1beta1.PreflightValidation, status *v1beta1.SRStatus, verificationStatus, message string) error
}

func NewStatusUpdater

func NewStatusUpdater(kubeClient clients.ClientsInterface) StatusUpdater

Jump to

Keyboard shortcuts

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