Documentation ¶
Index ¶
- type MockCreateFooRun
- func (_m *MockCreateFooRun) Cancel(ctx context.Context) error
- func (_m *MockCreateFooRun) EXPECT() *MockCreateFooRun_Expecter
- func (_m *MockCreateFooRun) Get(ctx context.Context) (*examplev1.CreateFooResponse, error)
- func (_m *MockCreateFooRun) GetFooProgress(ctx context.Context) (*examplev1.GetFooProgressResponse, error)
- func (_m *MockCreateFooRun) ID() string
- func (_m *MockCreateFooRun) Run() internal.WorkflowRun
- func (_m *MockCreateFooRun) RunID() string
- func (_m *MockCreateFooRun) SetFooProgress(ctx context.Context, req *examplev1.SetFooProgressRequest) error
- func (_m *MockCreateFooRun) Terminate(ctx context.Context, reason string, details ...interface{}) error
- func (_m *MockCreateFooRun) UpdateFooProgress(ctx context.Context, req *examplev1.SetFooProgressRequest, ...) (*examplev1.GetFooProgressResponse, error)
- func (_m *MockCreateFooRun) UpdateFooProgressAsync(ctx context.Context, req *examplev1.SetFooProgressRequest, ...) (examplev1.UpdateFooProgressHandle, error)
- type MockCreateFooRun_Cancel_Call
- func (_c *MockCreateFooRun_Cancel_Call) Return(_a0 error) *MockCreateFooRun_Cancel_Call
- func (_c *MockCreateFooRun_Cancel_Call) Run(run func(ctx context.Context)) *MockCreateFooRun_Cancel_Call
- func (_c *MockCreateFooRun_Cancel_Call) RunAndReturn(run func(context.Context) error) *MockCreateFooRun_Cancel_Call
- type MockCreateFooRun_Expecter
- func (_e *MockCreateFooRun_Expecter) Cancel(ctx interface{}) *MockCreateFooRun_Cancel_Call
- func (_e *MockCreateFooRun_Expecter) Get(ctx interface{}) *MockCreateFooRun_Get_Call
- func (_e *MockCreateFooRun_Expecter) GetFooProgress(ctx interface{}) *MockCreateFooRun_GetFooProgress_Call
- func (_e *MockCreateFooRun_Expecter) ID() *MockCreateFooRun_ID_Call
- func (_e *MockCreateFooRun_Expecter) Run() *MockCreateFooRun_Run_Call
- func (_e *MockCreateFooRun_Expecter) RunID() *MockCreateFooRun_RunID_Call
- func (_e *MockCreateFooRun_Expecter) SetFooProgress(ctx interface{}, req interface{}) *MockCreateFooRun_SetFooProgress_Call
- func (_e *MockCreateFooRun_Expecter) Terminate(ctx interface{}, reason interface{}, details ...interface{}) *MockCreateFooRun_Terminate_Call
- func (_e *MockCreateFooRun_Expecter) UpdateFooProgress(ctx interface{}, req interface{}, opts ...interface{}) *MockCreateFooRun_UpdateFooProgress_Call
- func (_e *MockCreateFooRun_Expecter) UpdateFooProgressAsync(ctx interface{}, req interface{}, opts ...interface{}) *MockCreateFooRun_UpdateFooProgressAsync_Call
- type MockCreateFooRun_GetFooProgress_Call
- func (_c *MockCreateFooRun_GetFooProgress_Call) Return(_a0 *examplev1.GetFooProgressResponse, _a1 error) *MockCreateFooRun_GetFooProgress_Call
- func (_c *MockCreateFooRun_GetFooProgress_Call) Run(run func(ctx context.Context)) *MockCreateFooRun_GetFooProgress_Call
- func (_c *MockCreateFooRun_GetFooProgress_Call) RunAndReturn(run func(context.Context) (*examplev1.GetFooProgressResponse, error)) *MockCreateFooRun_GetFooProgress_Call
- type MockCreateFooRun_Get_Call
- func (_c *MockCreateFooRun_Get_Call) Return(_a0 *examplev1.CreateFooResponse, _a1 error) *MockCreateFooRun_Get_Call
- func (_c *MockCreateFooRun_Get_Call) Run(run func(ctx context.Context)) *MockCreateFooRun_Get_Call
- func (_c *MockCreateFooRun_Get_Call) RunAndReturn(run func(context.Context) (*examplev1.CreateFooResponse, error)) *MockCreateFooRun_Get_Call
- type MockCreateFooRun_ID_Call
- type MockCreateFooRun_RunID_Call
- type MockCreateFooRun_Run_Call
- type MockCreateFooRun_SetFooProgress_Call
- func (_c *MockCreateFooRun_SetFooProgress_Call) Return(_a0 error) *MockCreateFooRun_SetFooProgress_Call
- func (_c *MockCreateFooRun_SetFooProgress_Call) Run(run func(ctx context.Context, req *examplev1.SetFooProgressRequest)) *MockCreateFooRun_SetFooProgress_Call
- func (_c *MockCreateFooRun_SetFooProgress_Call) RunAndReturn(run func(context.Context, *examplev1.SetFooProgressRequest) error) *MockCreateFooRun_SetFooProgress_Call
- type MockCreateFooRun_Terminate_Call
- func (_c *MockCreateFooRun_Terminate_Call) Return(_a0 error) *MockCreateFooRun_Terminate_Call
- func (_c *MockCreateFooRun_Terminate_Call) Run(run func(ctx context.Context, reason string, details ...interface{})) *MockCreateFooRun_Terminate_Call
- func (_c *MockCreateFooRun_Terminate_Call) RunAndReturn(run func(context.Context, string, ...interface{}) error) *MockCreateFooRun_Terminate_Call
- type MockCreateFooRun_UpdateFooProgressAsync_Call
- func (_c *MockCreateFooRun_UpdateFooProgressAsync_Call) Return(_a0 examplev1.UpdateFooProgressHandle, _a1 error) *MockCreateFooRun_UpdateFooProgressAsync_Call
- func (_c *MockCreateFooRun_UpdateFooProgressAsync_Call) Run(run func(ctx context.Context, req *examplev1.SetFooProgressRequest, ...)) *MockCreateFooRun_UpdateFooProgressAsync_Call
- func (_c *MockCreateFooRun_UpdateFooProgressAsync_Call) RunAndReturn(...) *MockCreateFooRun_UpdateFooProgressAsync_Call
- type MockCreateFooRun_UpdateFooProgress_Call
- func (_c *MockCreateFooRun_UpdateFooProgress_Call) Return(_a0 *examplev1.GetFooProgressResponse, _a1 error) *MockCreateFooRun_UpdateFooProgress_Call
- func (_c *MockCreateFooRun_UpdateFooProgress_Call) Run(run func(ctx context.Context, req *examplev1.SetFooProgressRequest, ...)) *MockCreateFooRun_UpdateFooProgress_Call
- func (_c *MockCreateFooRun_UpdateFooProgress_Call) RunAndReturn(...) *MockCreateFooRun_UpdateFooProgress_Call
- type MockExampleClient
- func (_m *MockExampleClient) CancelWorkflow(ctx context.Context, workflowID string, runID string) error
- func (_m *MockExampleClient) CreateFoo(ctx context.Context, req *examplev1.CreateFooRequest, ...) (*examplev1.CreateFooResponse, error)
- func (_m *MockExampleClient) CreateFooAsync(ctx context.Context, req *examplev1.CreateFooRequest, ...) (examplev1.CreateFooRun, error)
- func (_m *MockExampleClient) CreateFooWithSetFooProgress(ctx context.Context, req *examplev1.CreateFooRequest, ...) (*examplev1.CreateFooResponse, error)
- func (_m *MockExampleClient) CreateFooWithSetFooProgressAsync(ctx context.Context, req *examplev1.CreateFooRequest, ...) (examplev1.CreateFooRun, error)
- func (_m *MockExampleClient) EXPECT() *MockExampleClient_Expecter
- func (_m *MockExampleClient) GetCreateFoo(ctx context.Context, workflowID string, runID string) examplev1.CreateFooRun
- func (_m *MockExampleClient) GetFooProgress(ctx context.Context, workflowID string, runID string) (*examplev1.GetFooProgressResponse, error)
- func (_m *MockExampleClient) GetUpdateFooProgress(ctx context.Context, req internal.GetWorkflowUpdateHandleOptions) (examplev1.UpdateFooProgressHandle, error)
- func (_m *MockExampleClient) SetFooProgress(ctx context.Context, workflowID string, runID string, ...) error
- func (_m *MockExampleClient) TerminateWorkflow(ctx context.Context, workflowID string, runID string, reason string, ...) error
- func (_m *MockExampleClient) UpdateFooProgress(ctx context.Context, workflowID string, runID string, ...) (*examplev1.GetFooProgressResponse, error)
- func (_m *MockExampleClient) UpdateFooProgressAsync(ctx context.Context, workflowID string, runID string, ...) (examplev1.UpdateFooProgressHandle, error)
- type MockExampleClient_CancelWorkflow_Call
- func (_c *MockExampleClient_CancelWorkflow_Call) Return(_a0 error) *MockExampleClient_CancelWorkflow_Call
- func (_c *MockExampleClient_CancelWorkflow_Call) Run(run func(ctx context.Context, workflowID string, runID string)) *MockExampleClient_CancelWorkflow_Call
- func (_c *MockExampleClient_CancelWorkflow_Call) RunAndReturn(run func(context.Context, string, string) error) *MockExampleClient_CancelWorkflow_Call
- type MockExampleClient_CreateFooAsync_Call
- func (_c *MockExampleClient_CreateFooAsync_Call) Return(_a0 examplev1.CreateFooRun, _a1 error) *MockExampleClient_CreateFooAsync_Call
- func (_c *MockExampleClient_CreateFooAsync_Call) Run(run func(ctx context.Context, req *examplev1.CreateFooRequest, ...)) *MockExampleClient_CreateFooAsync_Call
- func (_c *MockExampleClient_CreateFooAsync_Call) RunAndReturn(...) *MockExampleClient_CreateFooAsync_Call
- type MockExampleClient_CreateFooWithSetFooProgressAsync_Call
- func (_c *MockExampleClient_CreateFooWithSetFooProgressAsync_Call) Return(_a0 examplev1.CreateFooRun, _a1 error) *MockExampleClient_CreateFooWithSetFooProgressAsync_Call
- func (_c *MockExampleClient_CreateFooWithSetFooProgressAsync_Call) Run(run func(ctx context.Context, req *examplev1.CreateFooRequest, ...)) *MockExampleClient_CreateFooWithSetFooProgressAsync_Call
- func (_c *MockExampleClient_CreateFooWithSetFooProgressAsync_Call) RunAndReturn(...) *MockExampleClient_CreateFooWithSetFooProgressAsync_Call
- type MockExampleClient_CreateFooWithSetFooProgress_Call
- func (_c *MockExampleClient_CreateFooWithSetFooProgress_Call) Return(_a0 *examplev1.CreateFooResponse, _a1 error) *MockExampleClient_CreateFooWithSetFooProgress_Call
- func (_c *MockExampleClient_CreateFooWithSetFooProgress_Call) Run(run func(ctx context.Context, req *examplev1.CreateFooRequest, ...)) *MockExampleClient_CreateFooWithSetFooProgress_Call
- func (_c *MockExampleClient_CreateFooWithSetFooProgress_Call) RunAndReturn(...) *MockExampleClient_CreateFooWithSetFooProgress_Call
- type MockExampleClient_CreateFoo_Call
- func (_c *MockExampleClient_CreateFoo_Call) Return(_a0 *examplev1.CreateFooResponse, _a1 error) *MockExampleClient_CreateFoo_Call
- func (_c *MockExampleClient_CreateFoo_Call) Run(run func(ctx context.Context, req *examplev1.CreateFooRequest, ...)) *MockExampleClient_CreateFoo_Call
- func (_c *MockExampleClient_CreateFoo_Call) RunAndReturn(...) *MockExampleClient_CreateFoo_Call
- type MockExampleClient_Expecter
- func (_e *MockExampleClient_Expecter) CancelWorkflow(ctx interface{}, workflowID interface{}, runID interface{}) *MockExampleClient_CancelWorkflow_Call
- func (_e *MockExampleClient_Expecter) CreateFoo(ctx interface{}, req interface{}, opts ...interface{}) *MockExampleClient_CreateFoo_Call
- func (_e *MockExampleClient_Expecter) CreateFooAsync(ctx interface{}, req interface{}, opts ...interface{}) *MockExampleClient_CreateFooAsync_Call
- func (_e *MockExampleClient_Expecter) CreateFooWithSetFooProgress(ctx interface{}, req interface{}, signal interface{}, opts ...interface{}) *MockExampleClient_CreateFooWithSetFooProgress_Call
- func (_e *MockExampleClient_Expecter) CreateFooWithSetFooProgressAsync(ctx interface{}, req interface{}, signal interface{}, opts ...interface{}) *MockExampleClient_CreateFooWithSetFooProgressAsync_Call
- func (_e *MockExampleClient_Expecter) GetCreateFoo(ctx interface{}, workflowID interface{}, runID interface{}) *MockExampleClient_GetCreateFoo_Call
- func (_e *MockExampleClient_Expecter) GetFooProgress(ctx interface{}, workflowID interface{}, runID interface{}) *MockExampleClient_GetFooProgress_Call
- func (_e *MockExampleClient_Expecter) GetUpdateFooProgress(ctx interface{}, req interface{}) *MockExampleClient_GetUpdateFooProgress_Call
- func (_e *MockExampleClient_Expecter) SetFooProgress(ctx interface{}, workflowID interface{}, runID interface{}, signal interface{}) *MockExampleClient_SetFooProgress_Call
- func (_e *MockExampleClient_Expecter) TerminateWorkflow(ctx interface{}, workflowID interface{}, runID interface{}, reason interface{}, ...) *MockExampleClient_TerminateWorkflow_Call
- func (_e *MockExampleClient_Expecter) UpdateFooProgress(ctx interface{}, workflowID interface{}, runID interface{}, req interface{}, ...) *MockExampleClient_UpdateFooProgress_Call
- func (_e *MockExampleClient_Expecter) UpdateFooProgressAsync(ctx interface{}, workflowID interface{}, runID interface{}, req interface{}, ...) *MockExampleClient_UpdateFooProgressAsync_Call
- type MockExampleClient_GetCreateFoo_Call
- func (_c *MockExampleClient_GetCreateFoo_Call) Return(_a0 examplev1.CreateFooRun) *MockExampleClient_GetCreateFoo_Call
- func (_c *MockExampleClient_GetCreateFoo_Call) Run(run func(ctx context.Context, workflowID string, runID string)) *MockExampleClient_GetCreateFoo_Call
- func (_c *MockExampleClient_GetCreateFoo_Call) RunAndReturn(run func(context.Context, string, string) examplev1.CreateFooRun) *MockExampleClient_GetCreateFoo_Call
- type MockExampleClient_GetFooProgress_Call
- func (_c *MockExampleClient_GetFooProgress_Call) Return(_a0 *examplev1.GetFooProgressResponse, _a1 error) *MockExampleClient_GetFooProgress_Call
- func (_c *MockExampleClient_GetFooProgress_Call) Run(run func(ctx context.Context, workflowID string, runID string)) *MockExampleClient_GetFooProgress_Call
- func (_c *MockExampleClient_GetFooProgress_Call) RunAndReturn(...) *MockExampleClient_GetFooProgress_Call
- type MockExampleClient_GetUpdateFooProgress_Call
- func (_c *MockExampleClient_GetUpdateFooProgress_Call) Return(_a0 examplev1.UpdateFooProgressHandle, _a1 error) *MockExampleClient_GetUpdateFooProgress_Call
- func (_c *MockExampleClient_GetUpdateFooProgress_Call) Run(run func(ctx context.Context, req internal.GetWorkflowUpdateHandleOptions)) *MockExampleClient_GetUpdateFooProgress_Call
- func (_c *MockExampleClient_GetUpdateFooProgress_Call) RunAndReturn(...) *MockExampleClient_GetUpdateFooProgress_Call
- type MockExampleClient_SetFooProgress_Call
- func (_c *MockExampleClient_SetFooProgress_Call) Return(_a0 error) *MockExampleClient_SetFooProgress_Call
- func (_c *MockExampleClient_SetFooProgress_Call) Run(run func(ctx context.Context, workflowID string, runID string, ...)) *MockExampleClient_SetFooProgress_Call
- func (_c *MockExampleClient_SetFooProgress_Call) RunAndReturn(...) *MockExampleClient_SetFooProgress_Call
- type MockExampleClient_TerminateWorkflow_Call
- func (_c *MockExampleClient_TerminateWorkflow_Call) Return(_a0 error) *MockExampleClient_TerminateWorkflow_Call
- func (_c *MockExampleClient_TerminateWorkflow_Call) Run(...) *MockExampleClient_TerminateWorkflow_Call
- func (_c *MockExampleClient_TerminateWorkflow_Call) RunAndReturn(run func(context.Context, string, string, string, ...interface{}) error) *MockExampleClient_TerminateWorkflow_Call
- type MockExampleClient_UpdateFooProgressAsync_Call
- func (_c *MockExampleClient_UpdateFooProgressAsync_Call) Return(_a0 examplev1.UpdateFooProgressHandle, _a1 error) *MockExampleClient_UpdateFooProgressAsync_Call
- func (_c *MockExampleClient_UpdateFooProgressAsync_Call) Run(run func(ctx context.Context, workflowID string, runID string, ...)) *MockExampleClient_UpdateFooProgressAsync_Call
- func (_c *MockExampleClient_UpdateFooProgressAsync_Call) RunAndReturn(...) *MockExampleClient_UpdateFooProgressAsync_Call
- type MockExampleClient_UpdateFooProgress_Call
- func (_c *MockExampleClient_UpdateFooProgress_Call) Return(_a0 *examplev1.GetFooProgressResponse, _a1 error) *MockExampleClient_UpdateFooProgress_Call
- func (_c *MockExampleClient_UpdateFooProgress_Call) Run(run func(ctx context.Context, workflowID string, runID string, ...)) *MockExampleClient_UpdateFooProgress_Call
- func (_c *MockExampleClient_UpdateFooProgress_Call) RunAndReturn(...) *MockExampleClient_UpdateFooProgress_Call
- type MockUpdateFooProgressHandle
- func (_m *MockUpdateFooProgressHandle) EXPECT() *MockUpdateFooProgressHandle_Expecter
- func (_m *MockUpdateFooProgressHandle) Get(ctx context.Context) (*examplev1.GetFooProgressResponse, error)
- func (_m *MockUpdateFooProgressHandle) RunID() string
- func (_m *MockUpdateFooProgressHandle) UpdateID() string
- func (_m *MockUpdateFooProgressHandle) WorkflowID() string
- type MockUpdateFooProgressHandle_Expecter
- func (_e *MockUpdateFooProgressHandle_Expecter) Get(ctx interface{}) *MockUpdateFooProgressHandle_Get_Call
- func (_e *MockUpdateFooProgressHandle_Expecter) RunID() *MockUpdateFooProgressHandle_RunID_Call
- func (_e *MockUpdateFooProgressHandle_Expecter) UpdateID() *MockUpdateFooProgressHandle_UpdateID_Call
- func (_e *MockUpdateFooProgressHandle_Expecter) WorkflowID() *MockUpdateFooProgressHandle_WorkflowID_Call
- type MockUpdateFooProgressHandle_Get_Call
- func (_c *MockUpdateFooProgressHandle_Get_Call) Return(_a0 *examplev1.GetFooProgressResponse, _a1 error) *MockUpdateFooProgressHandle_Get_Call
- func (_c *MockUpdateFooProgressHandle_Get_Call) Run(run func(ctx context.Context)) *MockUpdateFooProgressHandle_Get_Call
- func (_c *MockUpdateFooProgressHandle_Get_Call) RunAndReturn(run func(context.Context) (*examplev1.GetFooProgressResponse, error)) *MockUpdateFooProgressHandle_Get_Call
- type MockUpdateFooProgressHandle_RunID_Call
- func (_c *MockUpdateFooProgressHandle_RunID_Call) Return(_a0 string) *MockUpdateFooProgressHandle_RunID_Call
- func (_c *MockUpdateFooProgressHandle_RunID_Call) Run(run func()) *MockUpdateFooProgressHandle_RunID_Call
- func (_c *MockUpdateFooProgressHandle_RunID_Call) RunAndReturn(run func() string) *MockUpdateFooProgressHandle_RunID_Call
- type MockUpdateFooProgressHandle_UpdateID_Call
- func (_c *MockUpdateFooProgressHandle_UpdateID_Call) Return(_a0 string) *MockUpdateFooProgressHandle_UpdateID_Call
- func (_c *MockUpdateFooProgressHandle_UpdateID_Call) Run(run func()) *MockUpdateFooProgressHandle_UpdateID_Call
- func (_c *MockUpdateFooProgressHandle_UpdateID_Call) RunAndReturn(run func() string) *MockUpdateFooProgressHandle_UpdateID_Call
- type MockUpdateFooProgressHandle_WorkflowID_Call
- func (_c *MockUpdateFooProgressHandle_WorkflowID_Call) Return(_a0 string) *MockUpdateFooProgressHandle_WorkflowID_Call
- func (_c *MockUpdateFooProgressHandle_WorkflowID_Call) Run(run func()) *MockUpdateFooProgressHandle_WorkflowID_Call
- func (_c *MockUpdateFooProgressHandle_WorkflowID_Call) RunAndReturn(run func() string) *MockUpdateFooProgressHandle_WorkflowID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCreateFooRun ¶
MockCreateFooRun is an autogenerated mock type for the CreateFooRun type
func NewMockCreateFooRun ¶
func NewMockCreateFooRun(t interface { mock.TestingT Cleanup(func()) }) *MockCreateFooRun
NewMockCreateFooRun creates a new instance of MockCreateFooRun. 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 (*MockCreateFooRun) Cancel ¶
func (_m *MockCreateFooRun) Cancel(ctx context.Context) error
Cancel provides a mock function with given fields: ctx
func (*MockCreateFooRun) EXPECT ¶
func (_m *MockCreateFooRun) EXPECT() *MockCreateFooRun_Expecter
func (*MockCreateFooRun) Get ¶
func (_m *MockCreateFooRun) Get(ctx context.Context) (*examplev1.CreateFooResponse, error)
Get provides a mock function with given fields: ctx
func (*MockCreateFooRun) GetFooProgress ¶
func (_m *MockCreateFooRun) GetFooProgress(ctx context.Context) (*examplev1.GetFooProgressResponse, error)
GetFooProgress provides a mock function with given fields: ctx
func (*MockCreateFooRun) ID ¶
func (_m *MockCreateFooRun) ID() string
ID provides a mock function with given fields:
func (*MockCreateFooRun) Run ¶
func (_m *MockCreateFooRun) Run() internal.WorkflowRun
Run provides a mock function with given fields:
func (*MockCreateFooRun) RunID ¶
func (_m *MockCreateFooRun) RunID() string
RunID provides a mock function with given fields:
func (*MockCreateFooRun) SetFooProgress ¶
func (_m *MockCreateFooRun) SetFooProgress(ctx context.Context, req *examplev1.SetFooProgressRequest) error
SetFooProgress provides a mock function with given fields: ctx, req
func (*MockCreateFooRun) Terminate ¶
func (_m *MockCreateFooRun) Terminate(ctx context.Context, reason string, details ...interface{}) error
Terminate provides a mock function with given fields: ctx, reason, details
func (*MockCreateFooRun) UpdateFooProgress ¶
func (_m *MockCreateFooRun) UpdateFooProgress(ctx context.Context, req *examplev1.SetFooProgressRequest, opts ...*examplev1.UpdateFooProgressOptions) (*examplev1.GetFooProgressResponse, error)
UpdateFooProgress provides a mock function with given fields: ctx, req, opts
func (*MockCreateFooRun) UpdateFooProgressAsync ¶
func (_m *MockCreateFooRun) UpdateFooProgressAsync(ctx context.Context, req *examplev1.SetFooProgressRequest, opts ...*examplev1.UpdateFooProgressOptions) (examplev1.UpdateFooProgressHandle, error)
UpdateFooProgressAsync provides a mock function with given fields: ctx, req, opts
type MockCreateFooRun_Cancel_Call ¶
MockCreateFooRun_Cancel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cancel'
func (*MockCreateFooRun_Cancel_Call) Return ¶
func (_c *MockCreateFooRun_Cancel_Call) Return(_a0 error) *MockCreateFooRun_Cancel_Call
func (*MockCreateFooRun_Cancel_Call) Run ¶
func (_c *MockCreateFooRun_Cancel_Call) Run(run func(ctx context.Context)) *MockCreateFooRun_Cancel_Call
func (*MockCreateFooRun_Cancel_Call) RunAndReturn ¶
func (_c *MockCreateFooRun_Cancel_Call) RunAndReturn(run func(context.Context) error) *MockCreateFooRun_Cancel_Call
type MockCreateFooRun_Expecter ¶
type MockCreateFooRun_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCreateFooRun_Expecter) Cancel ¶
func (_e *MockCreateFooRun_Expecter) Cancel(ctx interface{}) *MockCreateFooRun_Cancel_Call
Cancel is a helper method to define mock.On call
- ctx context.Context
func (*MockCreateFooRun_Expecter) Get ¶
func (_e *MockCreateFooRun_Expecter) Get(ctx interface{}) *MockCreateFooRun_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
func (*MockCreateFooRun_Expecter) GetFooProgress ¶
func (_e *MockCreateFooRun_Expecter) GetFooProgress(ctx interface{}) *MockCreateFooRun_GetFooProgress_Call
GetFooProgress is a helper method to define mock.On call
- ctx context.Context
func (*MockCreateFooRun_Expecter) ID ¶
func (_e *MockCreateFooRun_Expecter) ID() *MockCreateFooRun_ID_Call
ID is a helper method to define mock.On call
func (*MockCreateFooRun_Expecter) Run ¶
func (_e *MockCreateFooRun_Expecter) Run() *MockCreateFooRun_Run_Call
Run is a helper method to define mock.On call
func (*MockCreateFooRun_Expecter) RunID ¶
func (_e *MockCreateFooRun_Expecter) RunID() *MockCreateFooRun_RunID_Call
RunID is a helper method to define mock.On call
func (*MockCreateFooRun_Expecter) SetFooProgress ¶
func (_e *MockCreateFooRun_Expecter) SetFooProgress(ctx interface{}, req interface{}) *MockCreateFooRun_SetFooProgress_Call
SetFooProgress is a helper method to define mock.On call
- ctx context.Context
- req *examplev1.SetFooProgressRequest
func (*MockCreateFooRun_Expecter) Terminate ¶
func (_e *MockCreateFooRun_Expecter) Terminate(ctx interface{}, reason interface{}, details ...interface{}) *MockCreateFooRun_Terminate_Call
Terminate is a helper method to define mock.On call
- ctx context.Context
- reason string
- details ...interface{}
func (*MockCreateFooRun_Expecter) UpdateFooProgress ¶
func (_e *MockCreateFooRun_Expecter) UpdateFooProgress(ctx interface{}, req interface{}, opts ...interface{}) *MockCreateFooRun_UpdateFooProgress_Call
UpdateFooProgress is a helper method to define mock.On call
- ctx context.Context
- req *examplev1.SetFooProgressRequest
- opts ...*examplev1.UpdateFooProgressOptions
func (*MockCreateFooRun_Expecter) UpdateFooProgressAsync ¶
func (_e *MockCreateFooRun_Expecter) UpdateFooProgressAsync(ctx interface{}, req interface{}, opts ...interface{}) *MockCreateFooRun_UpdateFooProgressAsync_Call
UpdateFooProgressAsync is a helper method to define mock.On call
- ctx context.Context
- req *examplev1.SetFooProgressRequest
- opts ...*examplev1.UpdateFooProgressOptions
type MockCreateFooRun_GetFooProgress_Call ¶
MockCreateFooRun_GetFooProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFooProgress'
func (*MockCreateFooRun_GetFooProgress_Call) Return ¶
func (_c *MockCreateFooRun_GetFooProgress_Call) Return(_a0 *examplev1.GetFooProgressResponse, _a1 error) *MockCreateFooRun_GetFooProgress_Call
func (*MockCreateFooRun_GetFooProgress_Call) Run ¶
func (_c *MockCreateFooRun_GetFooProgress_Call) Run(run func(ctx context.Context)) *MockCreateFooRun_GetFooProgress_Call
func (*MockCreateFooRun_GetFooProgress_Call) RunAndReturn ¶
func (_c *MockCreateFooRun_GetFooProgress_Call) RunAndReturn(run func(context.Context) (*examplev1.GetFooProgressResponse, error)) *MockCreateFooRun_GetFooProgress_Call
type MockCreateFooRun_Get_Call ¶
MockCreateFooRun_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockCreateFooRun_Get_Call) Return ¶
func (_c *MockCreateFooRun_Get_Call) Return(_a0 *examplev1.CreateFooResponse, _a1 error) *MockCreateFooRun_Get_Call
func (*MockCreateFooRun_Get_Call) Run ¶
func (_c *MockCreateFooRun_Get_Call) Run(run func(ctx context.Context)) *MockCreateFooRun_Get_Call
func (*MockCreateFooRun_Get_Call) RunAndReturn ¶
func (_c *MockCreateFooRun_Get_Call) RunAndReturn(run func(context.Context) (*examplev1.CreateFooResponse, error)) *MockCreateFooRun_Get_Call
type MockCreateFooRun_ID_Call ¶
MockCreateFooRun_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*MockCreateFooRun_ID_Call) Return ¶
func (_c *MockCreateFooRun_ID_Call) Return(_a0 string) *MockCreateFooRun_ID_Call
func (*MockCreateFooRun_ID_Call) Run ¶
func (_c *MockCreateFooRun_ID_Call) Run(run func()) *MockCreateFooRun_ID_Call
func (*MockCreateFooRun_ID_Call) RunAndReturn ¶
func (_c *MockCreateFooRun_ID_Call) RunAndReturn(run func() string) *MockCreateFooRun_ID_Call
type MockCreateFooRun_RunID_Call ¶
MockCreateFooRun_RunID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunID'
func (*MockCreateFooRun_RunID_Call) Return ¶
func (_c *MockCreateFooRun_RunID_Call) Return(_a0 string) *MockCreateFooRun_RunID_Call
func (*MockCreateFooRun_RunID_Call) Run ¶
func (_c *MockCreateFooRun_RunID_Call) Run(run func()) *MockCreateFooRun_RunID_Call
func (*MockCreateFooRun_RunID_Call) RunAndReturn ¶
func (_c *MockCreateFooRun_RunID_Call) RunAndReturn(run func() string) *MockCreateFooRun_RunID_Call
type MockCreateFooRun_Run_Call ¶
MockCreateFooRun_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*MockCreateFooRun_Run_Call) Return ¶
func (_c *MockCreateFooRun_Run_Call) Return(_a0 internal.WorkflowRun) *MockCreateFooRun_Run_Call
func (*MockCreateFooRun_Run_Call) Run ¶
func (_c *MockCreateFooRun_Run_Call) Run(run func()) *MockCreateFooRun_Run_Call
func (*MockCreateFooRun_Run_Call) RunAndReturn ¶
func (_c *MockCreateFooRun_Run_Call) RunAndReturn(run func() internal.WorkflowRun) *MockCreateFooRun_Run_Call
type MockCreateFooRun_SetFooProgress_Call ¶
MockCreateFooRun_SetFooProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFooProgress'
func (*MockCreateFooRun_SetFooProgress_Call) Return ¶
func (_c *MockCreateFooRun_SetFooProgress_Call) Return(_a0 error) *MockCreateFooRun_SetFooProgress_Call
func (*MockCreateFooRun_SetFooProgress_Call) Run ¶
func (_c *MockCreateFooRun_SetFooProgress_Call) Run(run func(ctx context.Context, req *examplev1.SetFooProgressRequest)) *MockCreateFooRun_SetFooProgress_Call
func (*MockCreateFooRun_SetFooProgress_Call) RunAndReturn ¶
func (_c *MockCreateFooRun_SetFooProgress_Call) RunAndReturn(run func(context.Context, *examplev1.SetFooProgressRequest) error) *MockCreateFooRun_SetFooProgress_Call
type MockCreateFooRun_Terminate_Call ¶
MockCreateFooRun_Terminate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Terminate'
func (*MockCreateFooRun_Terminate_Call) Return ¶
func (_c *MockCreateFooRun_Terminate_Call) Return(_a0 error) *MockCreateFooRun_Terminate_Call
func (*MockCreateFooRun_Terminate_Call) Run ¶
func (_c *MockCreateFooRun_Terminate_Call) Run(run func(ctx context.Context, reason string, details ...interface{})) *MockCreateFooRun_Terminate_Call
func (*MockCreateFooRun_Terminate_Call) RunAndReturn ¶
func (_c *MockCreateFooRun_Terminate_Call) RunAndReturn(run func(context.Context, string, ...interface{}) error) *MockCreateFooRun_Terminate_Call
type MockCreateFooRun_UpdateFooProgressAsync_Call ¶
MockCreateFooRun_UpdateFooProgressAsync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFooProgressAsync'
func (*MockCreateFooRun_UpdateFooProgressAsync_Call) Return ¶
func (_c *MockCreateFooRun_UpdateFooProgressAsync_Call) Return(_a0 examplev1.UpdateFooProgressHandle, _a1 error) *MockCreateFooRun_UpdateFooProgressAsync_Call
func (*MockCreateFooRun_UpdateFooProgressAsync_Call) Run ¶
func (_c *MockCreateFooRun_UpdateFooProgressAsync_Call) Run(run func(ctx context.Context, req *examplev1.SetFooProgressRequest, opts ...*examplev1.UpdateFooProgressOptions)) *MockCreateFooRun_UpdateFooProgressAsync_Call
func (*MockCreateFooRun_UpdateFooProgressAsync_Call) RunAndReturn ¶
func (_c *MockCreateFooRun_UpdateFooProgressAsync_Call) RunAndReturn(run func(context.Context, *examplev1.SetFooProgressRequest, ...*examplev1.UpdateFooProgressOptions) (examplev1.UpdateFooProgressHandle, error)) *MockCreateFooRun_UpdateFooProgressAsync_Call
type MockCreateFooRun_UpdateFooProgress_Call ¶
MockCreateFooRun_UpdateFooProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFooProgress'
func (*MockCreateFooRun_UpdateFooProgress_Call) Return ¶
func (_c *MockCreateFooRun_UpdateFooProgress_Call) Return(_a0 *examplev1.GetFooProgressResponse, _a1 error) *MockCreateFooRun_UpdateFooProgress_Call
func (*MockCreateFooRun_UpdateFooProgress_Call) Run ¶
func (_c *MockCreateFooRun_UpdateFooProgress_Call) Run(run func(ctx context.Context, req *examplev1.SetFooProgressRequest, opts ...*examplev1.UpdateFooProgressOptions)) *MockCreateFooRun_UpdateFooProgress_Call
func (*MockCreateFooRun_UpdateFooProgress_Call) RunAndReturn ¶
func (_c *MockCreateFooRun_UpdateFooProgress_Call) RunAndReturn(run func(context.Context, *examplev1.SetFooProgressRequest, ...*examplev1.UpdateFooProgressOptions) (*examplev1.GetFooProgressResponse, error)) *MockCreateFooRun_UpdateFooProgress_Call
type MockExampleClient ¶
MockExampleClient is an autogenerated mock type for the ExampleClient type
func NewMockExampleClient ¶
func NewMockExampleClient(t interface { mock.TestingT Cleanup(func()) }) *MockExampleClient
NewMockExampleClient creates a new instance of MockExampleClient. 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 (*MockExampleClient) CancelWorkflow ¶
func (_m *MockExampleClient) CancelWorkflow(ctx context.Context, workflowID string, runID string) error
CancelWorkflow provides a mock function with given fields: ctx, workflowID, runID
func (*MockExampleClient) CreateFoo ¶
func (_m *MockExampleClient) CreateFoo(ctx context.Context, req *examplev1.CreateFooRequest, opts ...*examplev1.CreateFooOptions) (*examplev1.CreateFooResponse, error)
CreateFoo provides a mock function with given fields: ctx, req, opts
func (*MockExampleClient) CreateFooAsync ¶
func (_m *MockExampleClient) CreateFooAsync(ctx context.Context, req *examplev1.CreateFooRequest, opts ...*examplev1.CreateFooOptions) (examplev1.CreateFooRun, error)
CreateFooAsync provides a mock function with given fields: ctx, req, opts
func (*MockExampleClient) CreateFooWithSetFooProgress ¶
func (_m *MockExampleClient) CreateFooWithSetFooProgress(ctx context.Context, req *examplev1.CreateFooRequest, signal *examplev1.SetFooProgressRequest, opts ...*examplev1.CreateFooOptions) (*examplev1.CreateFooResponse, error)
CreateFooWithSetFooProgress provides a mock function with given fields: ctx, req, signal, opts
func (*MockExampleClient) CreateFooWithSetFooProgressAsync ¶
func (_m *MockExampleClient) CreateFooWithSetFooProgressAsync(ctx context.Context, req *examplev1.CreateFooRequest, signal *examplev1.SetFooProgressRequest, opts ...*examplev1.CreateFooOptions) (examplev1.CreateFooRun, error)
CreateFooWithSetFooProgressAsync provides a mock function with given fields: ctx, req, signal, opts
func (*MockExampleClient) EXPECT ¶
func (_m *MockExampleClient) EXPECT() *MockExampleClient_Expecter
func (*MockExampleClient) GetCreateFoo ¶
func (_m *MockExampleClient) GetCreateFoo(ctx context.Context, workflowID string, runID string) examplev1.CreateFooRun
GetCreateFoo provides a mock function with given fields: ctx, workflowID, runID
func (*MockExampleClient) GetFooProgress ¶
func (_m *MockExampleClient) GetFooProgress(ctx context.Context, workflowID string, runID string) (*examplev1.GetFooProgressResponse, error)
GetFooProgress provides a mock function with given fields: ctx, workflowID, runID
func (*MockExampleClient) GetUpdateFooProgress ¶
func (_m *MockExampleClient) GetUpdateFooProgress(ctx context.Context, req internal.GetWorkflowUpdateHandleOptions) (examplev1.UpdateFooProgressHandle, error)
GetUpdateFooProgress provides a mock function with given fields: ctx, req
func (*MockExampleClient) SetFooProgress ¶
func (_m *MockExampleClient) SetFooProgress(ctx context.Context, workflowID string, runID string, signal *examplev1.SetFooProgressRequest) error
SetFooProgress provides a mock function with given fields: ctx, workflowID, runID, signal
func (*MockExampleClient) TerminateWorkflow ¶
func (_m *MockExampleClient) TerminateWorkflow(ctx context.Context, workflowID string, runID string, reason string, details ...interface{}) error
TerminateWorkflow provides a mock function with given fields: ctx, workflowID, runID, reason, details
func (*MockExampleClient) UpdateFooProgress ¶
func (_m *MockExampleClient) UpdateFooProgress(ctx context.Context, workflowID string, runID string, req *examplev1.SetFooProgressRequest, opts ...*examplev1.UpdateFooProgressOptions) (*examplev1.GetFooProgressResponse, error)
UpdateFooProgress provides a mock function with given fields: ctx, workflowID, runID, req, opts
func (*MockExampleClient) UpdateFooProgressAsync ¶
func (_m *MockExampleClient) UpdateFooProgressAsync(ctx context.Context, workflowID string, runID string, req *examplev1.SetFooProgressRequest, opts ...*examplev1.UpdateFooProgressOptions) (examplev1.UpdateFooProgressHandle, error)
UpdateFooProgressAsync provides a mock function with given fields: ctx, workflowID, runID, req, opts
type MockExampleClient_CancelWorkflow_Call ¶
MockExampleClient_CancelWorkflow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelWorkflow'
func (*MockExampleClient_CancelWorkflow_Call) Return ¶
func (_c *MockExampleClient_CancelWorkflow_Call) Return(_a0 error) *MockExampleClient_CancelWorkflow_Call
func (*MockExampleClient_CancelWorkflow_Call) Run ¶
func (_c *MockExampleClient_CancelWorkflow_Call) Run(run func(ctx context.Context, workflowID string, runID string)) *MockExampleClient_CancelWorkflow_Call
func (*MockExampleClient_CancelWorkflow_Call) RunAndReturn ¶
func (_c *MockExampleClient_CancelWorkflow_Call) RunAndReturn(run func(context.Context, string, string) error) *MockExampleClient_CancelWorkflow_Call
type MockExampleClient_CreateFooAsync_Call ¶
MockExampleClient_CreateFooAsync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFooAsync'
func (*MockExampleClient_CreateFooAsync_Call) Return ¶
func (_c *MockExampleClient_CreateFooAsync_Call) Return(_a0 examplev1.CreateFooRun, _a1 error) *MockExampleClient_CreateFooAsync_Call
func (*MockExampleClient_CreateFooAsync_Call) Run ¶
func (_c *MockExampleClient_CreateFooAsync_Call) Run(run func(ctx context.Context, req *examplev1.CreateFooRequest, opts ...*examplev1.CreateFooOptions)) *MockExampleClient_CreateFooAsync_Call
func (*MockExampleClient_CreateFooAsync_Call) RunAndReturn ¶
func (_c *MockExampleClient_CreateFooAsync_Call) RunAndReturn(run func(context.Context, *examplev1.CreateFooRequest, ...*examplev1.CreateFooOptions) (examplev1.CreateFooRun, error)) *MockExampleClient_CreateFooAsync_Call
type MockExampleClient_CreateFooWithSetFooProgressAsync_Call ¶
MockExampleClient_CreateFooWithSetFooProgressAsync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFooWithSetFooProgressAsync'
func (*MockExampleClient_CreateFooWithSetFooProgressAsync_Call) Run ¶
func (_c *MockExampleClient_CreateFooWithSetFooProgressAsync_Call) Run(run func(ctx context.Context, req *examplev1.CreateFooRequest, signal *examplev1.SetFooProgressRequest, opts ...*examplev1.CreateFooOptions)) *MockExampleClient_CreateFooWithSetFooProgressAsync_Call
func (*MockExampleClient_CreateFooWithSetFooProgressAsync_Call) RunAndReturn ¶
func (_c *MockExampleClient_CreateFooWithSetFooProgressAsync_Call) RunAndReturn(run func(context.Context, *examplev1.CreateFooRequest, *examplev1.SetFooProgressRequest, ...*examplev1.CreateFooOptions) (examplev1.CreateFooRun, error)) *MockExampleClient_CreateFooWithSetFooProgressAsync_Call
type MockExampleClient_CreateFooWithSetFooProgress_Call ¶
MockExampleClient_CreateFooWithSetFooProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFooWithSetFooProgress'
func (*MockExampleClient_CreateFooWithSetFooProgress_Call) Return ¶
func (_c *MockExampleClient_CreateFooWithSetFooProgress_Call) Return(_a0 *examplev1.CreateFooResponse, _a1 error) *MockExampleClient_CreateFooWithSetFooProgress_Call
func (*MockExampleClient_CreateFooWithSetFooProgress_Call) Run ¶
func (_c *MockExampleClient_CreateFooWithSetFooProgress_Call) Run(run func(ctx context.Context, req *examplev1.CreateFooRequest, signal *examplev1.SetFooProgressRequest, opts ...*examplev1.CreateFooOptions)) *MockExampleClient_CreateFooWithSetFooProgress_Call
func (*MockExampleClient_CreateFooWithSetFooProgress_Call) RunAndReturn ¶
func (_c *MockExampleClient_CreateFooWithSetFooProgress_Call) RunAndReturn(run func(context.Context, *examplev1.CreateFooRequest, *examplev1.SetFooProgressRequest, ...*examplev1.CreateFooOptions) (*examplev1.CreateFooResponse, error)) *MockExampleClient_CreateFooWithSetFooProgress_Call
type MockExampleClient_CreateFoo_Call ¶
MockExampleClient_CreateFoo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFoo'
func (*MockExampleClient_CreateFoo_Call) Return ¶
func (_c *MockExampleClient_CreateFoo_Call) Return(_a0 *examplev1.CreateFooResponse, _a1 error) *MockExampleClient_CreateFoo_Call
func (*MockExampleClient_CreateFoo_Call) Run ¶
func (_c *MockExampleClient_CreateFoo_Call) Run(run func(ctx context.Context, req *examplev1.CreateFooRequest, opts ...*examplev1.CreateFooOptions)) *MockExampleClient_CreateFoo_Call
func (*MockExampleClient_CreateFoo_Call) RunAndReturn ¶
func (_c *MockExampleClient_CreateFoo_Call) RunAndReturn(run func(context.Context, *examplev1.CreateFooRequest, ...*examplev1.CreateFooOptions) (*examplev1.CreateFooResponse, error)) *MockExampleClient_CreateFoo_Call
type MockExampleClient_Expecter ¶
type MockExampleClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockExampleClient_Expecter) CancelWorkflow ¶
func (_e *MockExampleClient_Expecter) CancelWorkflow(ctx interface{}, workflowID interface{}, runID interface{}) *MockExampleClient_CancelWorkflow_Call
CancelWorkflow is a helper method to define mock.On call
- ctx context.Context
- workflowID string
- runID string
func (*MockExampleClient_Expecter) CreateFoo ¶
func (_e *MockExampleClient_Expecter) CreateFoo(ctx interface{}, req interface{}, opts ...interface{}) *MockExampleClient_CreateFoo_Call
CreateFoo is a helper method to define mock.On call
- ctx context.Context
- req *examplev1.CreateFooRequest
- opts ...*examplev1.CreateFooOptions
func (*MockExampleClient_Expecter) CreateFooAsync ¶
func (_e *MockExampleClient_Expecter) CreateFooAsync(ctx interface{}, req interface{}, opts ...interface{}) *MockExampleClient_CreateFooAsync_Call
CreateFooAsync is a helper method to define mock.On call
- ctx context.Context
- req *examplev1.CreateFooRequest
- opts ...*examplev1.CreateFooOptions
func (*MockExampleClient_Expecter) CreateFooWithSetFooProgress ¶
func (_e *MockExampleClient_Expecter) CreateFooWithSetFooProgress(ctx interface{}, req interface{}, signal interface{}, opts ...interface{}) *MockExampleClient_CreateFooWithSetFooProgress_Call
CreateFooWithSetFooProgress is a helper method to define mock.On call
- ctx context.Context
- req *examplev1.CreateFooRequest
- signal *examplev1.SetFooProgressRequest
- opts ...*examplev1.CreateFooOptions
func (*MockExampleClient_Expecter) CreateFooWithSetFooProgressAsync ¶
func (_e *MockExampleClient_Expecter) CreateFooWithSetFooProgressAsync(ctx interface{}, req interface{}, signal interface{}, opts ...interface{}) *MockExampleClient_CreateFooWithSetFooProgressAsync_Call
CreateFooWithSetFooProgressAsync is a helper method to define mock.On call
- ctx context.Context
- req *examplev1.CreateFooRequest
- signal *examplev1.SetFooProgressRequest
- opts ...*examplev1.CreateFooOptions
func (*MockExampleClient_Expecter) GetCreateFoo ¶
func (_e *MockExampleClient_Expecter) GetCreateFoo(ctx interface{}, workflowID interface{}, runID interface{}) *MockExampleClient_GetCreateFoo_Call
GetCreateFoo is a helper method to define mock.On call
- ctx context.Context
- workflowID string
- runID string
func (*MockExampleClient_Expecter) GetFooProgress ¶
func (_e *MockExampleClient_Expecter) GetFooProgress(ctx interface{}, workflowID interface{}, runID interface{}) *MockExampleClient_GetFooProgress_Call
GetFooProgress is a helper method to define mock.On call
- ctx context.Context
- workflowID string
- runID string
func (*MockExampleClient_Expecter) GetUpdateFooProgress ¶
func (_e *MockExampleClient_Expecter) GetUpdateFooProgress(ctx interface{}, req interface{}) *MockExampleClient_GetUpdateFooProgress_Call
GetUpdateFooProgress is a helper method to define mock.On call
- ctx context.Context
- req internal.GetWorkflowUpdateHandleOptions
func (*MockExampleClient_Expecter) SetFooProgress ¶
func (_e *MockExampleClient_Expecter) SetFooProgress(ctx interface{}, workflowID interface{}, runID interface{}, signal interface{}) *MockExampleClient_SetFooProgress_Call
SetFooProgress is a helper method to define mock.On call
- ctx context.Context
- workflowID string
- runID string
- signal *examplev1.SetFooProgressRequest
func (*MockExampleClient_Expecter) TerminateWorkflow ¶
func (_e *MockExampleClient_Expecter) TerminateWorkflow(ctx interface{}, workflowID interface{}, runID interface{}, reason interface{}, details ...interface{}) *MockExampleClient_TerminateWorkflow_Call
TerminateWorkflow is a helper method to define mock.On call
- ctx context.Context
- workflowID string
- runID string
- reason string
- details ...interface{}
func (*MockExampleClient_Expecter) UpdateFooProgress ¶
func (_e *MockExampleClient_Expecter) UpdateFooProgress(ctx interface{}, workflowID interface{}, runID interface{}, req interface{}, opts ...interface{}) *MockExampleClient_UpdateFooProgress_Call
UpdateFooProgress is a helper method to define mock.On call
- ctx context.Context
- workflowID string
- runID string
- req *examplev1.SetFooProgressRequest
- opts ...*examplev1.UpdateFooProgressOptions
func (*MockExampleClient_Expecter) UpdateFooProgressAsync ¶
func (_e *MockExampleClient_Expecter) UpdateFooProgressAsync(ctx interface{}, workflowID interface{}, runID interface{}, req interface{}, opts ...interface{}) *MockExampleClient_UpdateFooProgressAsync_Call
UpdateFooProgressAsync is a helper method to define mock.On call
- ctx context.Context
- workflowID string
- runID string
- req *examplev1.SetFooProgressRequest
- opts ...*examplev1.UpdateFooProgressOptions
type MockExampleClient_GetCreateFoo_Call ¶
MockExampleClient_GetCreateFoo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCreateFoo'
func (*MockExampleClient_GetCreateFoo_Call) Return ¶
func (_c *MockExampleClient_GetCreateFoo_Call) Return(_a0 examplev1.CreateFooRun) *MockExampleClient_GetCreateFoo_Call
func (*MockExampleClient_GetCreateFoo_Call) Run ¶
func (_c *MockExampleClient_GetCreateFoo_Call) Run(run func(ctx context.Context, workflowID string, runID string)) *MockExampleClient_GetCreateFoo_Call
func (*MockExampleClient_GetCreateFoo_Call) RunAndReturn ¶
func (_c *MockExampleClient_GetCreateFoo_Call) RunAndReturn(run func(context.Context, string, string) examplev1.CreateFooRun) *MockExampleClient_GetCreateFoo_Call
type MockExampleClient_GetFooProgress_Call ¶
MockExampleClient_GetFooProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFooProgress'
func (*MockExampleClient_GetFooProgress_Call) Return ¶
func (_c *MockExampleClient_GetFooProgress_Call) Return(_a0 *examplev1.GetFooProgressResponse, _a1 error) *MockExampleClient_GetFooProgress_Call
func (*MockExampleClient_GetFooProgress_Call) Run ¶
func (_c *MockExampleClient_GetFooProgress_Call) Run(run func(ctx context.Context, workflowID string, runID string)) *MockExampleClient_GetFooProgress_Call
func (*MockExampleClient_GetFooProgress_Call) RunAndReturn ¶
func (_c *MockExampleClient_GetFooProgress_Call) RunAndReturn(run func(context.Context, string, string) (*examplev1.GetFooProgressResponse, error)) *MockExampleClient_GetFooProgress_Call
type MockExampleClient_GetUpdateFooProgress_Call ¶
MockExampleClient_GetUpdateFooProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUpdateFooProgress'
func (*MockExampleClient_GetUpdateFooProgress_Call) Return ¶
func (_c *MockExampleClient_GetUpdateFooProgress_Call) Return(_a0 examplev1.UpdateFooProgressHandle, _a1 error) *MockExampleClient_GetUpdateFooProgress_Call
func (*MockExampleClient_GetUpdateFooProgress_Call) Run ¶
func (_c *MockExampleClient_GetUpdateFooProgress_Call) Run(run func(ctx context.Context, req internal.GetWorkflowUpdateHandleOptions)) *MockExampleClient_GetUpdateFooProgress_Call
func (*MockExampleClient_GetUpdateFooProgress_Call) RunAndReturn ¶
func (_c *MockExampleClient_GetUpdateFooProgress_Call) RunAndReturn(run func(context.Context, internal.GetWorkflowUpdateHandleOptions) (examplev1.UpdateFooProgressHandle, error)) *MockExampleClient_GetUpdateFooProgress_Call
type MockExampleClient_SetFooProgress_Call ¶
MockExampleClient_SetFooProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFooProgress'
func (*MockExampleClient_SetFooProgress_Call) Return ¶
func (_c *MockExampleClient_SetFooProgress_Call) Return(_a0 error) *MockExampleClient_SetFooProgress_Call
func (*MockExampleClient_SetFooProgress_Call) Run ¶
func (_c *MockExampleClient_SetFooProgress_Call) Run(run func(ctx context.Context, workflowID string, runID string, signal *examplev1.SetFooProgressRequest)) *MockExampleClient_SetFooProgress_Call
func (*MockExampleClient_SetFooProgress_Call) RunAndReturn ¶
func (_c *MockExampleClient_SetFooProgress_Call) RunAndReturn(run func(context.Context, string, string, *examplev1.SetFooProgressRequest) error) *MockExampleClient_SetFooProgress_Call
type MockExampleClient_TerminateWorkflow_Call ¶
MockExampleClient_TerminateWorkflow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TerminateWorkflow'
func (*MockExampleClient_TerminateWorkflow_Call) Return ¶
func (_c *MockExampleClient_TerminateWorkflow_Call) Return(_a0 error) *MockExampleClient_TerminateWorkflow_Call
func (*MockExampleClient_TerminateWorkflow_Call) Run ¶
func (_c *MockExampleClient_TerminateWorkflow_Call) Run(run func(ctx context.Context, workflowID string, runID string, reason string, details ...interface{})) *MockExampleClient_TerminateWorkflow_Call
func (*MockExampleClient_TerminateWorkflow_Call) RunAndReturn ¶
func (_c *MockExampleClient_TerminateWorkflow_Call) RunAndReturn(run func(context.Context, string, string, string, ...interface{}) error) *MockExampleClient_TerminateWorkflow_Call
type MockExampleClient_UpdateFooProgressAsync_Call ¶
MockExampleClient_UpdateFooProgressAsync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFooProgressAsync'
func (*MockExampleClient_UpdateFooProgressAsync_Call) Return ¶
func (_c *MockExampleClient_UpdateFooProgressAsync_Call) Return(_a0 examplev1.UpdateFooProgressHandle, _a1 error) *MockExampleClient_UpdateFooProgressAsync_Call
func (*MockExampleClient_UpdateFooProgressAsync_Call) Run ¶
func (_c *MockExampleClient_UpdateFooProgressAsync_Call) Run(run func(ctx context.Context, workflowID string, runID string, req *examplev1.SetFooProgressRequest, opts ...*examplev1.UpdateFooProgressOptions)) *MockExampleClient_UpdateFooProgressAsync_Call
func (*MockExampleClient_UpdateFooProgressAsync_Call) RunAndReturn ¶
func (_c *MockExampleClient_UpdateFooProgressAsync_Call) RunAndReturn(run func(context.Context, string, string, *examplev1.SetFooProgressRequest, ...*examplev1.UpdateFooProgressOptions) (examplev1.UpdateFooProgressHandle, error)) *MockExampleClient_UpdateFooProgressAsync_Call
type MockExampleClient_UpdateFooProgress_Call ¶
MockExampleClient_UpdateFooProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFooProgress'
func (*MockExampleClient_UpdateFooProgress_Call) Return ¶
func (_c *MockExampleClient_UpdateFooProgress_Call) Return(_a0 *examplev1.GetFooProgressResponse, _a1 error) *MockExampleClient_UpdateFooProgress_Call
func (*MockExampleClient_UpdateFooProgress_Call) Run ¶
func (_c *MockExampleClient_UpdateFooProgress_Call) Run(run func(ctx context.Context, workflowID string, runID string, req *examplev1.SetFooProgressRequest, opts ...*examplev1.UpdateFooProgressOptions)) *MockExampleClient_UpdateFooProgress_Call
func (*MockExampleClient_UpdateFooProgress_Call) RunAndReturn ¶
func (_c *MockExampleClient_UpdateFooProgress_Call) RunAndReturn(run func(context.Context, string, string, *examplev1.SetFooProgressRequest, ...*examplev1.UpdateFooProgressOptions) (*examplev1.GetFooProgressResponse, error)) *MockExampleClient_UpdateFooProgress_Call
type MockUpdateFooProgressHandle ¶
MockUpdateFooProgressHandle is an autogenerated mock type for the UpdateFooProgressHandle type
func NewMockUpdateFooProgressHandle ¶
func NewMockUpdateFooProgressHandle(t interface { mock.TestingT Cleanup(func()) }) *MockUpdateFooProgressHandle
NewMockUpdateFooProgressHandle creates a new instance of MockUpdateFooProgressHandle. 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 (*MockUpdateFooProgressHandle) EXPECT ¶
func (_m *MockUpdateFooProgressHandle) EXPECT() *MockUpdateFooProgressHandle_Expecter
func (*MockUpdateFooProgressHandle) Get ¶
func (_m *MockUpdateFooProgressHandle) Get(ctx context.Context) (*examplev1.GetFooProgressResponse, error)
Get provides a mock function with given fields: ctx
func (*MockUpdateFooProgressHandle) RunID ¶
func (_m *MockUpdateFooProgressHandle) RunID() string
RunID provides a mock function with given fields:
func (*MockUpdateFooProgressHandle) UpdateID ¶
func (_m *MockUpdateFooProgressHandle) UpdateID() string
UpdateID provides a mock function with given fields:
func (*MockUpdateFooProgressHandle) WorkflowID ¶
func (_m *MockUpdateFooProgressHandle) WorkflowID() string
WorkflowID provides a mock function with given fields:
type MockUpdateFooProgressHandle_Expecter ¶
type MockUpdateFooProgressHandle_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUpdateFooProgressHandle_Expecter) Get ¶
func (_e *MockUpdateFooProgressHandle_Expecter) Get(ctx interface{}) *MockUpdateFooProgressHandle_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
func (*MockUpdateFooProgressHandle_Expecter) RunID ¶
func (_e *MockUpdateFooProgressHandle_Expecter) RunID() *MockUpdateFooProgressHandle_RunID_Call
RunID is a helper method to define mock.On call
func (*MockUpdateFooProgressHandle_Expecter) UpdateID ¶
func (_e *MockUpdateFooProgressHandle_Expecter) UpdateID() *MockUpdateFooProgressHandle_UpdateID_Call
UpdateID is a helper method to define mock.On call
func (*MockUpdateFooProgressHandle_Expecter) WorkflowID ¶
func (_e *MockUpdateFooProgressHandle_Expecter) WorkflowID() *MockUpdateFooProgressHandle_WorkflowID_Call
WorkflowID is a helper method to define mock.On call
type MockUpdateFooProgressHandle_Get_Call ¶
MockUpdateFooProgressHandle_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockUpdateFooProgressHandle_Get_Call) Return ¶
func (_c *MockUpdateFooProgressHandle_Get_Call) Return(_a0 *examplev1.GetFooProgressResponse, _a1 error) *MockUpdateFooProgressHandle_Get_Call
func (*MockUpdateFooProgressHandle_Get_Call) Run ¶
func (_c *MockUpdateFooProgressHandle_Get_Call) Run(run func(ctx context.Context)) *MockUpdateFooProgressHandle_Get_Call
func (*MockUpdateFooProgressHandle_Get_Call) RunAndReturn ¶
func (_c *MockUpdateFooProgressHandle_Get_Call) RunAndReturn(run func(context.Context) (*examplev1.GetFooProgressResponse, error)) *MockUpdateFooProgressHandle_Get_Call
type MockUpdateFooProgressHandle_RunID_Call ¶
MockUpdateFooProgressHandle_RunID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunID'
func (*MockUpdateFooProgressHandle_RunID_Call) Return ¶
func (_c *MockUpdateFooProgressHandle_RunID_Call) Return(_a0 string) *MockUpdateFooProgressHandle_RunID_Call
func (*MockUpdateFooProgressHandle_RunID_Call) Run ¶
func (_c *MockUpdateFooProgressHandle_RunID_Call) Run(run func()) *MockUpdateFooProgressHandle_RunID_Call
func (*MockUpdateFooProgressHandle_RunID_Call) RunAndReturn ¶
func (_c *MockUpdateFooProgressHandle_RunID_Call) RunAndReturn(run func() string) *MockUpdateFooProgressHandle_RunID_Call
type MockUpdateFooProgressHandle_UpdateID_Call ¶
MockUpdateFooProgressHandle_UpdateID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateID'
func (*MockUpdateFooProgressHandle_UpdateID_Call) Return ¶
func (_c *MockUpdateFooProgressHandle_UpdateID_Call) Return(_a0 string) *MockUpdateFooProgressHandle_UpdateID_Call
func (*MockUpdateFooProgressHandle_UpdateID_Call) Run ¶
func (_c *MockUpdateFooProgressHandle_UpdateID_Call) Run(run func()) *MockUpdateFooProgressHandle_UpdateID_Call
func (*MockUpdateFooProgressHandle_UpdateID_Call) RunAndReturn ¶
func (_c *MockUpdateFooProgressHandle_UpdateID_Call) RunAndReturn(run func() string) *MockUpdateFooProgressHandle_UpdateID_Call
type MockUpdateFooProgressHandle_WorkflowID_Call ¶
MockUpdateFooProgressHandle_WorkflowID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WorkflowID'
func (*MockUpdateFooProgressHandle_WorkflowID_Call) Return ¶
func (_c *MockUpdateFooProgressHandle_WorkflowID_Call) Return(_a0 string) *MockUpdateFooProgressHandle_WorkflowID_Call
func (*MockUpdateFooProgressHandle_WorkflowID_Call) Run ¶
func (_c *MockUpdateFooProgressHandle_WorkflowID_Call) Run(run func()) *MockUpdateFooProgressHandle_WorkflowID_Call
func (*MockUpdateFooProgressHandle_WorkflowID_Call) RunAndReturn ¶
func (_c *MockUpdateFooProgressHandle_WorkflowID_Call) RunAndReturn(run func() string) *MockUpdateFooProgressHandle_WorkflowID_Call