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 ¶
- type MockRecover
- func (m *MockRecover) CancelResourceRecover(resource statemachine.StateResource, conf map[define.WFConfKey]string) error
- func (m *MockRecover) EXPECT() *MockRecoverMockRecorder
- func (m *MockRecover) GetResourceRecoverInfo(resource statemachine.StateResource, conf map[define.WFConfKey]string) (bool, statemachine.State)
- func (m *MockRecover) SaveResourceInterruptInfo(resource statemachine.StateResource, conf map[define.WFConfKey]string, ...) error
- type MockRecoverMockRecorder
- func (mr *MockRecoverMockRecorder) CancelResourceRecover(resource, conf interface{}) *gomock.Call
- func (mr *MockRecoverMockRecorder) GetResourceRecoverInfo(resource, conf interface{}) *gomock.Call
- func (mr *MockRecoverMockRecorder) SaveResourceInterruptInfo(resource, conf, reason, message, prevState interface{}) *gomock.Call
- type MockStateMainEnter
- type MockStateMainEnterMockRecorder
- type MockStateResource
- func (m *MockStateResource) EXPECT() *MockStateResourceMockRecorder
- func (m *MockStateResource) Fetch() (statemachine.StateResource, error)
- func (m *MockStateResource) GetName() string
- func (m *MockStateResource) GetNamespace() string
- func (m *MockStateResource) GetState() statemachine.State
- func (m *MockStateResource) IsCancelled() bool
- func (m *MockStateResource) UpdateState(arg0 statemachine.State) (statemachine.StateResource, error)
- type MockStateResourceMockRecorder
- func (mr *MockStateResourceMockRecorder) Fetch() *gomock.Call
- func (mr *MockStateResourceMockRecorder) GetName() *gomock.Call
- func (mr *MockStateResourceMockRecorder) GetNamespace() *gomock.Call
- func (mr *MockStateResourceMockRecorder) GetState() *gomock.Call
- func (mr *MockStateResourceMockRecorder) IsCancelled() *gomock.Call
- func (mr *MockStateResourceMockRecorder) UpdateState(arg0 interface{}) *gomock.Call
- type MockStepAction
- type MockStepActionMockRecorder
- type MockWfHook
- func (m *MockWfHook) EXPECT() *MockWfHookMockRecorder
- func (m *MockWfHook) OnStepCompleted(step *wfengine.StepRuntime) error
- func (m *MockWfHook) OnStepInit(step *wfengine.StepRuntime) error
- func (m *MockWfHook) OnStepWaiting(step *wfengine.StepRuntime) error
- func (m *MockWfHook) OnWfCompleted() error
- func (m *MockWfHook) OnWfInit() error
- func (m *MockWfHook) OnWfInterrupt(arg0 *define.InterruptError) error
- type MockWfHookMockRecorder
- func (mr *MockWfHookMockRecorder) OnStepCompleted(step interface{}) *gomock.Call
- func (mr *MockWfHookMockRecorder) OnStepInit(step interface{}) *gomock.Call
- func (mr *MockWfHookMockRecorder) OnStepWaiting(step interface{}) *gomock.Call
- func (mr *MockWfHookMockRecorder) OnWfCompleted() *gomock.Call
- func (mr *MockWfHookMockRecorder) OnWfInit() *gomock.Call
- func (mr *MockWfHookMockRecorder) OnWfInterrupt(arg0 interface{}) *gomock.Call
- type MockWfMetaLoader
- type MockWfMetaLoaderMockRecorder
- type MockWfRuntimeMementoStorage
- type MockWfRuntimeMementoStorageMockRecorder
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 ¶
func (m *MockStateMainEnter) EXPECT() *MockStateMainEnterMockRecorder
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 ¶
func (m *MockStateMainEnter) MainEnter(obj statemachine.StateResource) error
MainEnter mocks base method.
type MockStateMainEnterMockRecorder ¶
type MockStateMainEnterMockRecorder struct {
// contains filtered or unexported fields
}
MockStateMainEnterMockRecorder is the mock recorder for MockStateMainEnter.
func (*MockStateMainEnterMockRecorder) GetName ¶
func (mr *MockStateMainEnterMockRecorder) GetName() *gomock.Call
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 ¶
func (m *MockStateResource) EXPECT() *MockStateResourceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateResource) Fetch ¶
func (m *MockStateResource) Fetch() (statemachine.StateResource, error)
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 ¶
func (m *MockStateResource) UpdateState(arg0 statemachine.State) (statemachine.StateResource, error)
UpdateState mocks base method.
type MockStateResourceMockRecorder ¶
type MockStateResourceMockRecorder struct {
// contains filtered or unexported fields
}
MockStateResourceMockRecorder is the mock recorder for MockStateResource.
func (*MockStateResourceMockRecorder) Fetch ¶
func (mr *MockStateResourceMockRecorder) Fetch() *gomock.Call
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) EXPECT ¶
func (m *MockStepAction) EXPECT() *MockStepActionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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) 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 ¶
func (m *MockWfMetaLoader) EXPECT() *MockWfMetaLoaderMockRecorder
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 ¶
func (m *MockWfRuntimeMementoStorage) EXPECT() *MockWfRuntimeMementoStorageMockRecorder
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.