Documentation
¶
Index ¶
- type QueueClientInterface
- func (_m *QueueClientInterface) AbortQueuedAction(ctx context.Context, actionID *common.ActionIdentifier, reason *string) error
- func (_m *QueueClientInterface) AbortQueuedRun(ctx context.Context, runID *common.RunIdentifier, reason *string) error
- func (_m *QueueClientInterface) EXPECT() *QueueClientInterface_Expecter
- func (_m *QueueClientInterface) EnqueueAction(ctx context.Context, req *workflow.EnqueueActionRequest) error
- type QueueClientInterface_AbortQueuedAction_Call
- func (_c *QueueClientInterface_AbortQueuedAction_Call) Return(_a0 error) *QueueClientInterface_AbortQueuedAction_Call
- func (_c *QueueClientInterface_AbortQueuedAction_Call) Run(...) *QueueClientInterface_AbortQueuedAction_Call
- func (_c *QueueClientInterface_AbortQueuedAction_Call) RunAndReturn(run func(context.Context, *common.ActionIdentifier, *string) error) *QueueClientInterface_AbortQueuedAction_Call
- type QueueClientInterface_AbortQueuedRun_Call
- func (_c *QueueClientInterface_AbortQueuedRun_Call) Return(_a0 error) *QueueClientInterface_AbortQueuedRun_Call
- func (_c *QueueClientInterface_AbortQueuedRun_Call) Run(run func(ctx context.Context, runID *common.RunIdentifier, reason *string)) *QueueClientInterface_AbortQueuedRun_Call
- func (_c *QueueClientInterface_AbortQueuedRun_Call) RunAndReturn(run func(context.Context, *common.RunIdentifier, *string) error) *QueueClientInterface_AbortQueuedRun_Call
- type QueueClientInterface_EnqueueAction_Call
- func (_c *QueueClientInterface_EnqueueAction_Call) Return(_a0 error) *QueueClientInterface_EnqueueAction_Call
- func (_c *QueueClientInterface_EnqueueAction_Call) Run(run func(ctx context.Context, req *workflow.EnqueueActionRequest)) *QueueClientInterface_EnqueueAction_Call
- func (_c *QueueClientInterface_EnqueueAction_Call) RunAndReturn(run func(context.Context, *workflow.EnqueueActionRequest) error) *QueueClientInterface_EnqueueAction_Call
- type QueueClientInterface_Expecter
- func (_e *QueueClientInterface_Expecter) AbortQueuedAction(ctx interface{}, actionID interface{}, reason interface{}) *QueueClientInterface_AbortQueuedAction_Call
- func (_e *QueueClientInterface_Expecter) AbortQueuedRun(ctx interface{}, runID interface{}, reason interface{}) *QueueClientInterface_AbortQueuedRun_Call
- func (_e *QueueClientInterface_Expecter) EnqueueAction(ctx interface{}, req interface{}) *QueueClientInterface_EnqueueAction_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueueClientInterface ¶
QueueClientInterface is an autogenerated mock type for the QueueClientInterface type
func NewQueueClientInterface ¶
func NewQueueClientInterface(t interface {
mock.TestingT
Cleanup(func())
}) *QueueClientInterface
NewQueueClientInterface creates a new instance of QueueClientInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*QueueClientInterface) AbortQueuedAction ¶
func (_m *QueueClientInterface) AbortQueuedAction(ctx context.Context, actionID *common.ActionIdentifier, reason *string) error
AbortQueuedAction provides a mock function with given fields: ctx, actionID, reason
func (*QueueClientInterface) AbortQueuedRun ¶
func (_m *QueueClientInterface) AbortQueuedRun(ctx context.Context, runID *common.RunIdentifier, reason *string) error
AbortQueuedRun provides a mock function with given fields: ctx, runID, reason
func (*QueueClientInterface) EXPECT ¶
func (_m *QueueClientInterface) EXPECT() *QueueClientInterface_Expecter
func (*QueueClientInterface) EnqueueAction ¶
func (_m *QueueClientInterface) EnqueueAction(ctx context.Context, req *workflow.EnqueueActionRequest) error
EnqueueAction provides a mock function with given fields: ctx, req
type QueueClientInterface_AbortQueuedAction_Call ¶
QueueClientInterface_AbortQueuedAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AbortQueuedAction'
func (*QueueClientInterface_AbortQueuedAction_Call) Return ¶
func (_c *QueueClientInterface_AbortQueuedAction_Call) Return(_a0 error) *QueueClientInterface_AbortQueuedAction_Call
func (*QueueClientInterface_AbortQueuedAction_Call) Run ¶
func (_c *QueueClientInterface_AbortQueuedAction_Call) Run(run func(ctx context.Context, actionID *common.ActionIdentifier, reason *string)) *QueueClientInterface_AbortQueuedAction_Call
func (*QueueClientInterface_AbortQueuedAction_Call) RunAndReturn ¶
func (_c *QueueClientInterface_AbortQueuedAction_Call) RunAndReturn(run func(context.Context, *common.ActionIdentifier, *string) error) *QueueClientInterface_AbortQueuedAction_Call
type QueueClientInterface_AbortQueuedRun_Call ¶
QueueClientInterface_AbortQueuedRun_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AbortQueuedRun'
func (*QueueClientInterface_AbortQueuedRun_Call) Return ¶
func (_c *QueueClientInterface_AbortQueuedRun_Call) Return(_a0 error) *QueueClientInterface_AbortQueuedRun_Call
func (*QueueClientInterface_AbortQueuedRun_Call) Run ¶
func (_c *QueueClientInterface_AbortQueuedRun_Call) Run(run func(ctx context.Context, runID *common.RunIdentifier, reason *string)) *QueueClientInterface_AbortQueuedRun_Call
func (*QueueClientInterface_AbortQueuedRun_Call) RunAndReturn ¶
func (_c *QueueClientInterface_AbortQueuedRun_Call) RunAndReturn(run func(context.Context, *common.RunIdentifier, *string) error) *QueueClientInterface_AbortQueuedRun_Call
type QueueClientInterface_EnqueueAction_Call ¶
QueueClientInterface_EnqueueAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnqueueAction'
func (*QueueClientInterface_EnqueueAction_Call) Return ¶
func (_c *QueueClientInterface_EnqueueAction_Call) Return(_a0 error) *QueueClientInterface_EnqueueAction_Call
func (*QueueClientInterface_EnqueueAction_Call) Run ¶
func (_c *QueueClientInterface_EnqueueAction_Call) Run(run func(ctx context.Context, req *workflow.EnqueueActionRequest)) *QueueClientInterface_EnqueueAction_Call
func (*QueueClientInterface_EnqueueAction_Call) RunAndReturn ¶
func (_c *QueueClientInterface_EnqueueAction_Call) RunAndReturn(run func(context.Context, *workflow.EnqueueActionRequest) error) *QueueClientInterface_EnqueueAction_Call
type QueueClientInterface_Expecter ¶
type QueueClientInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*QueueClientInterface_Expecter) AbortQueuedAction ¶
func (_e *QueueClientInterface_Expecter) AbortQueuedAction(ctx interface{}, actionID interface{}, reason interface{}) *QueueClientInterface_AbortQueuedAction_Call
AbortQueuedAction is a helper method to define mock.On call
- ctx context.Context
- actionID *common.ActionIdentifier
- reason *string
func (*QueueClientInterface_Expecter) AbortQueuedRun ¶
func (_e *QueueClientInterface_Expecter) AbortQueuedRun(ctx interface{}, runID interface{}, reason interface{}) *QueueClientInterface_AbortQueuedRun_Call
AbortQueuedRun is a helper method to define mock.On call
- ctx context.Context
- runID *common.RunIdentifier
- reason *string
func (*QueueClientInterface_Expecter) EnqueueAction ¶
func (_e *QueueClientInterface_Expecter) EnqueueAction(ctx interface{}, req interface{}) *QueueClientInterface_EnqueueAction_Call
EnqueueAction is a helper method to define mock.On call
- ctx context.Context
- req *workflow.EnqueueActionRequest