mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock_wfengine is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRecover

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

MockRecover is a mock of Recover interface.

func NewMockRecover

func NewMockRecover(ctrl *gomock.Controller) *MockRecover

NewMockRecover creates a new mock instance.

func (*MockRecover) CancelResourceRecover

func (m *MockRecover) CancelResourceRecover(resource statemachine.StateResource, conf map[define.WFConfKey]string) error

CancelResourceRecover mocks base method.

func (*MockRecover) EXPECT

func (m *MockRecover) EXPECT() *MockRecoverMockRecorder

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

func (*MockRecover) GetResourceRecoverInfo

func (m *MockRecover) GetResourceRecoverInfo(resource statemachine.StateResource, conf map[define.WFConfKey]string) (bool, statemachine.State)

GetResourceRecoverInfo mocks base method.

func (*MockRecover) SaveResourceInterruptInfo

func (m *MockRecover) SaveResourceInterruptInfo(resource statemachine.StateResource, conf map[define.WFConfKey]string, reason, message, prevState string) error

SaveResourceInterruptInfo mocks base method.

type MockRecoverMockRecorder

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

MockRecoverMockRecorder is the mock recorder for MockRecover.

func (*MockRecoverMockRecorder) CancelResourceRecover

func (mr *MockRecoverMockRecorder) CancelResourceRecover(resource, conf interface{}) *gomock.Call

CancelResourceRecover indicates an expected call of CancelResourceRecover.

func (*MockRecoverMockRecorder) GetResourceRecoverInfo

func (mr *MockRecoverMockRecorder) GetResourceRecoverInfo(resource, conf interface{}) *gomock.Call

GetResourceRecoverInfo indicates an expected call of GetResourceRecoverInfo.

func (*MockRecoverMockRecorder) SaveResourceInterruptInfo

func (mr *MockRecoverMockRecorder) SaveResourceInterruptInfo(resource, conf, reason, message, prevState interface{}) *gomock.Call

SaveResourceInterruptInfo indicates an expected call of SaveResourceInterruptInfo.

type MockStateMainEnter

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

MockStateMainEnter is a mock of StateMainEnter interface.

func NewMockStateMainEnter

func NewMockStateMainEnter(ctrl *gomock.Controller) *MockStateMainEnter

NewMockStateMainEnter creates a new mock instance.

func (*MockStateMainEnter) EXPECT

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

func (*MockStateMainEnter) GetName

func (m *MockStateMainEnter) GetName() string

GetName mocks base method.

func (*MockStateMainEnter) MainEnter

MainEnter mocks base method.

type MockStateMainEnterMockRecorder

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

MockStateMainEnterMockRecorder is the mock recorder for MockStateMainEnter.

func (*MockStateMainEnterMockRecorder) GetName

GetName indicates an expected call of GetName.

func (*MockStateMainEnterMockRecorder) MainEnter

func (mr *MockStateMainEnterMockRecorder) MainEnter(obj interface{}) *gomock.Call

MainEnter indicates an expected call of MainEnter.

type MockStateResource

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

MockStateResource is a mock of StateResource interface.

func NewMockStateResource

func NewMockStateResource(ctrl *gomock.Controller) *MockStateResource

NewMockStateResource creates a new mock instance.

func (*MockStateResource) EXPECT

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

func (*MockStateResource) Fetch

Fetch mocks base method.

func (*MockStateResource) GetName

func (m *MockStateResource) GetName() string

GetName mocks base method.

func (*MockStateResource) GetNamespace

func (m *MockStateResource) GetNamespace() string

GetNamespace mocks base method.

func (*MockStateResource) GetState

func (m *MockStateResource) GetState() statemachine.State

GetState mocks base method.

func (*MockStateResource) IsCancelled

func (m *MockStateResource) IsCancelled() bool

IsCancelled mocks base method.

func (*MockStateResource) UpdateState

UpdateState mocks base method.

type MockStateResourceMockRecorder

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

MockStateResourceMockRecorder is the mock recorder for MockStateResource.

func (*MockStateResourceMockRecorder) Fetch

Fetch indicates an expected call of Fetch.

func (*MockStateResourceMockRecorder) GetName

func (mr *MockStateResourceMockRecorder) GetName() *gomock.Call

GetName indicates an expected call of GetName.

func (*MockStateResourceMockRecorder) GetNamespace

func (mr *MockStateResourceMockRecorder) GetNamespace() *gomock.Call

GetNamespace indicates an expected call of GetNamespace.

func (*MockStateResourceMockRecorder) GetState

func (mr *MockStateResourceMockRecorder) GetState() *gomock.Call

GetState indicates an expected call of GetState.

func (*MockStateResourceMockRecorder) IsCancelled

func (mr *MockStateResourceMockRecorder) IsCancelled() *gomock.Call

IsCancelled indicates an expected call of IsCancelled.

func (*MockStateResourceMockRecorder) UpdateState

func (mr *MockStateResourceMockRecorder) UpdateState(arg0 interface{}) *gomock.Call

UpdateState indicates an expected call of UpdateState.

type MockStepAction

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

MockStepAction is a mock of StepAction interface.

func NewMockStepAction

func NewMockStepAction(ctrl *gomock.Controller) *MockStepAction

NewMockStepAction creates a new mock instance.

func (*MockStepAction) DoStep

func (m *MockStepAction) DoStep(arg0 context.Context, arg1 logr.Logger) error

DoStep mocks base method.

func (*MockStepAction) EXPECT

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

func (*MockStepAction) Init

func (m *MockStepAction) Init(arg0 map[string]interface{}, arg1 logr.Logger) error

Init mocks base method.

func (*MockStepAction) Output

func (m *MockStepAction) Output(arg0 logr.Logger) map[string]interface{}

Output mocks base method.

type MockStepActionMockRecorder

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

MockStepActionMockRecorder is the mock recorder for MockStepAction.

func (*MockStepActionMockRecorder) DoStep

func (mr *MockStepActionMockRecorder) DoStep(arg0, arg1 interface{}) *gomock.Call

DoStep indicates an expected call of DoStep.

func (*MockStepActionMockRecorder) Init

func (mr *MockStepActionMockRecorder) Init(arg0, arg1 interface{}) *gomock.Call

Init indicates an expected call of Init.

func (*MockStepActionMockRecorder) Output

func (mr *MockStepActionMockRecorder) Output(arg0 interface{}) *gomock.Call

Output indicates an expected call of Output.

type MockWfHook

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

MockWfHook is a mock of WfHook interface.

func NewMockWfHook

func NewMockWfHook(ctrl *gomock.Controller) *MockWfHook

NewMockWfHook creates a new mock instance.

func (*MockWfHook) EXPECT

func (m *MockWfHook) EXPECT() *MockWfHookMockRecorder

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

func (*MockWfHook) OnStepCompleted

func (m *MockWfHook) OnStepCompleted(step *wfengine.StepRuntime) error

OnStepCompleted mocks base method.

func (*MockWfHook) OnStepInit

func (m *MockWfHook) OnStepInit(step *wfengine.StepRuntime) error

OnStepInit mocks base method.

func (*MockWfHook) OnStepWaiting

func (m *MockWfHook) OnStepWaiting(step *wfengine.StepRuntime) error

OnStepWaiting mocks base method.

func (*MockWfHook) OnWfCompleted

func (m *MockWfHook) OnWfCompleted() error

OnWfCompleted mocks base method.

func (*MockWfHook) OnWfInit

func (m *MockWfHook) OnWfInit() error

OnWfInit mocks base method.

func (*MockWfHook) OnWfInterrupt

func (m *MockWfHook) OnWfInterrupt(arg0 *define.InterruptError) error

OnWfInterrupt mocks base method.

type MockWfHookMockRecorder

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

MockWfHookMockRecorder is the mock recorder for MockWfHook.

func (*MockWfHookMockRecorder) OnStepCompleted

func (mr *MockWfHookMockRecorder) OnStepCompleted(step interface{}) *gomock.Call

OnStepCompleted indicates an expected call of OnStepCompleted.

func (*MockWfHookMockRecorder) OnStepInit

func (mr *MockWfHookMockRecorder) OnStepInit(step interface{}) *gomock.Call

OnStepInit indicates an expected call of OnStepInit.

func (*MockWfHookMockRecorder) OnStepWaiting

func (mr *MockWfHookMockRecorder) OnStepWaiting(step interface{}) *gomock.Call

OnStepWaiting indicates an expected call of OnStepWaiting.

func (*MockWfHookMockRecorder) OnWfCompleted

func (mr *MockWfHookMockRecorder) OnWfCompleted() *gomock.Call

OnWfCompleted indicates an expected call of OnWfCompleted.

func (*MockWfHookMockRecorder) OnWfInit

func (mr *MockWfHookMockRecorder) OnWfInit() *gomock.Call

OnWfInit indicates an expected call of OnWfInit.

func (*MockWfHookMockRecorder) OnWfInterrupt

func (mr *MockWfHookMockRecorder) OnWfInterrupt(arg0 interface{}) *gomock.Call

OnWfInterrupt indicates an expected call of OnWfInterrupt.

type MockWfMetaLoader

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

MockWfMetaLoader is a mock of WfMetaLoader interface.

func NewMockWfMetaLoader

func NewMockWfMetaLoader(ctrl *gomock.Controller) *MockWfMetaLoader

NewMockWfMetaLoader creates a new mock instance.

func (*MockWfMetaLoader) EXPECT

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

func (*MockWfMetaLoader) GetAllFlowMeta

func (m *MockWfMetaLoader) GetAllFlowMeta(workFlowMetaDir string) (map[string]*wfengine.FlowMeta, map[string]*wfengine.StepGroupMeta, error)

GetAllFlowMeta mocks base method.

type MockWfMetaLoaderMockRecorder

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

MockWfMetaLoaderMockRecorder is the mock recorder for MockWfMetaLoader.

func (*MockWfMetaLoaderMockRecorder) GetAllFlowMeta

func (mr *MockWfMetaLoaderMockRecorder) GetAllFlowMeta(workFlowMetaDir interface{}) *gomock.Call

GetAllFlowMeta indicates an expected call of GetAllFlowMeta.

type MockWfRuntimeMementoStorage

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

MockWfRuntimeMementoStorage is a mock of WfRuntimeMementoStorage interface.

func NewMockWfRuntimeMementoStorage

func NewMockWfRuntimeMementoStorage(ctrl *gomock.Controller) *MockWfRuntimeMementoStorage

NewMockWfRuntimeMementoStorage creates a new mock instance.

func (*MockWfRuntimeMementoStorage) EXPECT

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

func (*MockWfRuntimeMementoStorage) LoadMementoMap

func (m *MockWfRuntimeMementoStorage) LoadMementoMap(careTakerName string) (map[string]string, error)

LoadMementoMap mocks base method.

func (*MockWfRuntimeMementoStorage) Save

func (m *MockWfRuntimeMementoStorage) Save(mementoKey, mementoContent string) error

Save mocks base method.

type MockWfRuntimeMementoStorageMockRecorder

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

MockWfRuntimeMementoStorageMockRecorder is the mock recorder for MockWfRuntimeMementoStorage.

func (*MockWfRuntimeMementoStorageMockRecorder) LoadMementoMap

func (mr *MockWfRuntimeMementoStorageMockRecorder) LoadMementoMap(careTakerName interface{}) *gomock.Call

LoadMementoMap indicates an expected call of LoadMementoMap.

func (*MockWfRuntimeMementoStorageMockRecorder) Save

func (mr *MockWfRuntimeMementoStorageMockRecorder) Save(mementoKey, mementoContent interface{}) *gomock.Call

Save indicates an expected call of Save.

Jump to

Keyboard shortcuts

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