Documentation
¶
Index ¶
- type MockService
- func (_m *MockService) CreateWorkflow(ctx context.Context, namespaceName string, wf *v1alpha1.Workflow) (*v1alpha1.Workflow, error)
- func (_m *MockService) DeleteWorkflow(ctx context.Context, namespaceName string, workflowName string) error
- func (_m *MockService) EXPECT() *MockService_Expecter
- func (_m *MockService) GetWorkflow(ctx context.Context, namespaceName string, workflowName string) (*v1alpha1.Workflow, error)
- func (_m *MockService) GetWorkflowSchema(ctx context.Context, namespaceName string, workflowName string) (map[string]interface{}, error)
- func (_m *MockService) ListWorkflows(ctx context.Context, namespaceName string, opts services.ListOptions) (*services.ListResult[v1alpha1.Workflow], error)
- func (_m *MockService) UpdateWorkflow(ctx context.Context, namespaceName string, wf *v1alpha1.Workflow) (*v1alpha1.Workflow, error)
- type MockService_CreateWorkflow_Call
- func (_c *MockService_CreateWorkflow_Call) Return(_a0 *v1alpha1.Workflow, _a1 error) *MockService_CreateWorkflow_Call
- func (_c *MockService_CreateWorkflow_Call) Run(run func(ctx context.Context, namespaceName string, wf *v1alpha1.Workflow)) *MockService_CreateWorkflow_Call
- func (_c *MockService_CreateWorkflow_Call) RunAndReturn(...) *MockService_CreateWorkflow_Call
- type MockService_DeleteWorkflow_Call
- func (_c *MockService_DeleteWorkflow_Call) Return(_a0 error) *MockService_DeleteWorkflow_Call
- func (_c *MockService_DeleteWorkflow_Call) Run(run func(ctx context.Context, namespaceName string, workflowName string)) *MockService_DeleteWorkflow_Call
- func (_c *MockService_DeleteWorkflow_Call) RunAndReturn(run func(context.Context, string, string) error) *MockService_DeleteWorkflow_Call
- type MockService_Expecter
- func (_e *MockService_Expecter) CreateWorkflow(ctx interface{}, namespaceName interface{}, wf interface{}) *MockService_CreateWorkflow_Call
- func (_e *MockService_Expecter) DeleteWorkflow(ctx interface{}, namespaceName interface{}, workflowName interface{}) *MockService_DeleteWorkflow_Call
- func (_e *MockService_Expecter) GetWorkflow(ctx interface{}, namespaceName interface{}, workflowName interface{}) *MockService_GetWorkflow_Call
- func (_e *MockService_Expecter) GetWorkflowSchema(ctx interface{}, namespaceName interface{}, workflowName interface{}) *MockService_GetWorkflowSchema_Call
- func (_e *MockService_Expecter) ListWorkflows(ctx interface{}, namespaceName interface{}, opts interface{}) *MockService_ListWorkflows_Call
- func (_e *MockService_Expecter) UpdateWorkflow(ctx interface{}, namespaceName interface{}, wf interface{}) *MockService_UpdateWorkflow_Call
- type MockService_GetWorkflowSchema_Call
- func (_c *MockService_GetWorkflowSchema_Call) Return(_a0 map[string]interface{}, _a1 error) *MockService_GetWorkflowSchema_Call
- func (_c *MockService_GetWorkflowSchema_Call) Run(run func(ctx context.Context, namespaceName string, workflowName string)) *MockService_GetWorkflowSchema_Call
- func (_c *MockService_GetWorkflowSchema_Call) RunAndReturn(run func(context.Context, string, string) (map[string]interface{}, error)) *MockService_GetWorkflowSchema_Call
- type MockService_GetWorkflow_Call
- func (_c *MockService_GetWorkflow_Call) Return(_a0 *v1alpha1.Workflow, _a1 error) *MockService_GetWorkflow_Call
- func (_c *MockService_GetWorkflow_Call) Run(run func(ctx context.Context, namespaceName string, workflowName string)) *MockService_GetWorkflow_Call
- func (_c *MockService_GetWorkflow_Call) RunAndReturn(run func(context.Context, string, string) (*v1alpha1.Workflow, error)) *MockService_GetWorkflow_Call
- type MockService_ListWorkflows_Call
- func (_c *MockService_ListWorkflows_Call) Return(_a0 *services.ListResult[v1alpha1.Workflow], _a1 error) *MockService_ListWorkflows_Call
- func (_c *MockService_ListWorkflows_Call) Run(run func(ctx context.Context, namespaceName string, opts services.ListOptions)) *MockService_ListWorkflows_Call
- func (_c *MockService_ListWorkflows_Call) RunAndReturn(...) *MockService_ListWorkflows_Call
- type MockService_UpdateWorkflow_Call
- func (_c *MockService_UpdateWorkflow_Call) Return(_a0 *v1alpha1.Workflow, _a1 error) *MockService_UpdateWorkflow_Call
- func (_c *MockService_UpdateWorkflow_Call) Run(run func(ctx context.Context, namespaceName string, wf *v1alpha1.Workflow)) *MockService_UpdateWorkflow_Call
- func (_c *MockService_UpdateWorkflow_Call) RunAndReturn(...) *MockService_UpdateWorkflow_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
MockService is an autogenerated mock type for the Service type
func NewMockService ¶
func NewMockService(t interface {
mock.TestingT
Cleanup(func())
}) *MockService
NewMockService creates a new instance of MockService. 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 (*MockService) CreateWorkflow ¶
func (_m *MockService) CreateWorkflow(ctx context.Context, namespaceName string, wf *v1alpha1.Workflow) (*v1alpha1.Workflow, error)
CreateWorkflow provides a mock function with given fields: ctx, namespaceName, wf
func (*MockService) DeleteWorkflow ¶
func (_m *MockService) DeleteWorkflow(ctx context.Context, namespaceName string, workflowName string) error
DeleteWorkflow provides a mock function with given fields: ctx, namespaceName, workflowName
func (*MockService) EXPECT ¶
func (_m *MockService) EXPECT() *MockService_Expecter
func (*MockService) GetWorkflow ¶
func (_m *MockService) GetWorkflow(ctx context.Context, namespaceName string, workflowName string) (*v1alpha1.Workflow, error)
GetWorkflow provides a mock function with given fields: ctx, namespaceName, workflowName
func (*MockService) GetWorkflowSchema ¶
func (_m *MockService) GetWorkflowSchema(ctx context.Context, namespaceName string, workflowName string) (map[string]interface{}, error)
GetWorkflowSchema provides a mock function with given fields: ctx, namespaceName, workflowName
func (*MockService) ListWorkflows ¶
func (_m *MockService) ListWorkflows(ctx context.Context, namespaceName string, opts services.ListOptions) (*services.ListResult[v1alpha1.Workflow], error)
ListWorkflows provides a mock function with given fields: ctx, namespaceName, opts
type MockService_CreateWorkflow_Call ¶
MockService_CreateWorkflow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateWorkflow'
func (*MockService_CreateWorkflow_Call) Return ¶
func (_c *MockService_CreateWorkflow_Call) Return(_a0 *v1alpha1.Workflow, _a1 error) *MockService_CreateWorkflow_Call
func (*MockService_CreateWorkflow_Call) Run ¶
func (_c *MockService_CreateWorkflow_Call) Run(run func(ctx context.Context, namespaceName string, wf *v1alpha1.Workflow)) *MockService_CreateWorkflow_Call
func (*MockService_CreateWorkflow_Call) RunAndReturn ¶
func (_c *MockService_CreateWorkflow_Call) RunAndReturn(run func(context.Context, string, *v1alpha1.Workflow) (*v1alpha1.Workflow, error)) *MockService_CreateWorkflow_Call
type MockService_DeleteWorkflow_Call ¶
MockService_DeleteWorkflow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteWorkflow'
func (*MockService_DeleteWorkflow_Call) Return ¶
func (_c *MockService_DeleteWorkflow_Call) Return(_a0 error) *MockService_DeleteWorkflow_Call
func (*MockService_DeleteWorkflow_Call) Run ¶
func (_c *MockService_DeleteWorkflow_Call) Run(run func(ctx context.Context, namespaceName string, workflowName string)) *MockService_DeleteWorkflow_Call
func (*MockService_DeleteWorkflow_Call) RunAndReturn ¶
func (_c *MockService_DeleteWorkflow_Call) RunAndReturn(run func(context.Context, string, string) error) *MockService_DeleteWorkflow_Call
type MockService_Expecter ¶
type MockService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockService_Expecter) CreateWorkflow ¶
func (_e *MockService_Expecter) CreateWorkflow(ctx interface{}, namespaceName interface{}, wf interface{}) *MockService_CreateWorkflow_Call
CreateWorkflow is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- wf *v1alpha1.Workflow
func (*MockService_Expecter) DeleteWorkflow ¶
func (_e *MockService_Expecter) DeleteWorkflow(ctx interface{}, namespaceName interface{}, workflowName interface{}) *MockService_DeleteWorkflow_Call
DeleteWorkflow is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- workflowName string
func (*MockService_Expecter) GetWorkflow ¶
func (_e *MockService_Expecter) GetWorkflow(ctx interface{}, namespaceName interface{}, workflowName interface{}) *MockService_GetWorkflow_Call
GetWorkflow is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- workflowName string
func (*MockService_Expecter) GetWorkflowSchema ¶
func (_e *MockService_Expecter) GetWorkflowSchema(ctx interface{}, namespaceName interface{}, workflowName interface{}) *MockService_GetWorkflowSchema_Call
GetWorkflowSchema is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- workflowName string
func (*MockService_Expecter) ListWorkflows ¶
func (_e *MockService_Expecter) ListWorkflows(ctx interface{}, namespaceName interface{}, opts interface{}) *MockService_ListWorkflows_Call
ListWorkflows is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- opts services.ListOptions
func (*MockService_Expecter) UpdateWorkflow ¶
func (_e *MockService_Expecter) UpdateWorkflow(ctx interface{}, namespaceName interface{}, wf interface{}) *MockService_UpdateWorkflow_Call
UpdateWorkflow is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- wf *v1alpha1.Workflow
type MockService_GetWorkflowSchema_Call ¶
MockService_GetWorkflowSchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkflowSchema'
func (*MockService_GetWorkflowSchema_Call) Return ¶
func (_c *MockService_GetWorkflowSchema_Call) Return(_a0 map[string]interface{}, _a1 error) *MockService_GetWorkflowSchema_Call
func (*MockService_GetWorkflowSchema_Call) Run ¶
func (_c *MockService_GetWorkflowSchema_Call) Run(run func(ctx context.Context, namespaceName string, workflowName string)) *MockService_GetWorkflowSchema_Call
func (*MockService_GetWorkflowSchema_Call) RunAndReturn ¶
func (_c *MockService_GetWorkflowSchema_Call) RunAndReturn(run func(context.Context, string, string) (map[string]interface{}, error)) *MockService_GetWorkflowSchema_Call
type MockService_GetWorkflow_Call ¶
MockService_GetWorkflow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkflow'
func (*MockService_GetWorkflow_Call) Return ¶
func (_c *MockService_GetWorkflow_Call) Return(_a0 *v1alpha1.Workflow, _a1 error) *MockService_GetWorkflow_Call
func (*MockService_GetWorkflow_Call) Run ¶
func (_c *MockService_GetWorkflow_Call) Run(run func(ctx context.Context, namespaceName string, workflowName string)) *MockService_GetWorkflow_Call
func (*MockService_GetWorkflow_Call) RunAndReturn ¶
func (_c *MockService_GetWorkflow_Call) RunAndReturn(run func(context.Context, string, string) (*v1alpha1.Workflow, error)) *MockService_GetWorkflow_Call
type MockService_ListWorkflows_Call ¶
MockService_ListWorkflows_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListWorkflows'
func (*MockService_ListWorkflows_Call) Return ¶
func (_c *MockService_ListWorkflows_Call) Return(_a0 *services.ListResult[v1alpha1.Workflow], _a1 error) *MockService_ListWorkflows_Call
func (*MockService_ListWorkflows_Call) Run ¶
func (_c *MockService_ListWorkflows_Call) Run(run func(ctx context.Context, namespaceName string, opts services.ListOptions)) *MockService_ListWorkflows_Call
func (*MockService_ListWorkflows_Call) RunAndReturn ¶
func (_c *MockService_ListWorkflows_Call) RunAndReturn(run func(context.Context, string, services.ListOptions) (*services.ListResult[v1alpha1.Workflow], error)) *MockService_ListWorkflows_Call
type MockService_UpdateWorkflow_Call ¶
MockService_UpdateWorkflow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWorkflow'
func (*MockService_UpdateWorkflow_Call) Return ¶
func (_c *MockService_UpdateWorkflow_Call) Return(_a0 *v1alpha1.Workflow, _a1 error) *MockService_UpdateWorkflow_Call
func (*MockService_UpdateWorkflow_Call) Run ¶
func (_c *MockService_UpdateWorkflow_Call) Run(run func(ctx context.Context, namespaceName string, wf *v1alpha1.Workflow)) *MockService_UpdateWorkflow_Call
func (*MockService_UpdateWorkflow_Call) RunAndReturn ¶
func (_c *MockService_UpdateWorkflow_Call) RunAndReturn(run func(context.Context, string, *v1alpha1.Workflow) (*v1alpha1.Workflow, error)) *MockService_UpdateWorkflow_Call