Documentation ¶
Overview ¶
Package state is a generated GoMock package.
Index ¶
- Constants
- type MockStatusUpdater
- func (m *MockStatusUpdater) EXPECT() *MockStatusUpdaterMockRecorder
- func (m *MockStatusUpdater) SetAsErrored(ctx context.Context, sr *v1beta1.SpecialResource, reason, message string) error
- func (m *MockStatusUpdater) SetAsProgressing(ctx context.Context, sr *v1beta1.SpecialResource, reason, message string) error
- func (m *MockStatusUpdater) SetAsReady(ctx context.Context, sr *v1beta1.SpecialResource, reason, message string) error
- func (m *MockStatusUpdater) SetVerificationStatus(ctx context.Context, pv *v1beta1.PreflightValidation, status *v1beta1.SRStatus, ...) error
- type MockStatusUpdaterMockRecorder
- func (mr *MockStatusUpdaterMockRecorder) SetAsErrored(ctx, sr, reason, message interface{}) *gomock.Call
- func (mr *MockStatusUpdaterMockRecorder) SetAsProgressing(ctx, sr, reason, message interface{}) *gomock.Call
- func (mr *MockStatusUpdaterMockRecorder) SetAsReady(ctx, sr, reason, message interface{}) *gomock.Call
- func (mr *MockStatusUpdaterMockRecorder) SetVerificationStatus(ctx, pv, status, verificationStatus, message interface{}) *gomock.Call
- type StatusUpdater
Constants ¶
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 ¶
func (m *MockStatusUpdater) EXPECT() *MockStatusUpdaterMockRecorder
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