Documentation
¶
Index ¶
- type MockService
- func (_m *MockService) CreateWorkflowRun(ctx context.Context, namespaceName string, wfRun *v1alpha1.WorkflowRun) (*v1alpha1.WorkflowRun, error)
- func (_m *MockService) DeleteWorkflowRun(ctx context.Context, namespaceName string, runName string) error
- func (_m *MockService) EXPECT() *MockService_Expecter
- func (_m *MockService) GetWorkflowRun(ctx context.Context, namespaceName string, runName string) (*v1alpha1.WorkflowRun, error)
- func (_m *MockService) GetWorkflowRunEvents(ctx context.Context, namespaceName string, runName string, taskName string) ([]models.WorkflowRunEventEntry, error)
- func (_m *MockService) GetWorkflowRunLogs(ctx context.Context, namespaceName string, runName string, taskName string, ...) ([]models.WorkflowRunLogEntry, error)
- func (_m *MockService) GetWorkflowRunStatus(ctx context.Context, namespaceName string, runName string) (*models.WorkflowRunStatusResponse, error)
- func (_m *MockService) ListWorkflowRuns(ctx context.Context, namespaceName string, projectName string, ...) (*services.ListResult[v1alpha1.WorkflowRun], error)
- func (_m *MockService) TriggerWorkflow(ctx context.Context, namespaceName string, projectName string, ...) (*models.WorkflowRunTriggerResponse, error)
- func (_m *MockService) UpdateWorkflowRun(ctx context.Context, namespaceName string, wfRun *v1alpha1.WorkflowRun) (*v1alpha1.WorkflowRun, error)
- type MockService_CreateWorkflowRun_Call
- func (_c *MockService_CreateWorkflowRun_Call) Return(_a0 *v1alpha1.WorkflowRun, _a1 error) *MockService_CreateWorkflowRun_Call
- func (_c *MockService_CreateWorkflowRun_Call) Run(...) *MockService_CreateWorkflowRun_Call
- func (_c *MockService_CreateWorkflowRun_Call) RunAndReturn(...) *MockService_CreateWorkflowRun_Call
- type MockService_DeleteWorkflowRun_Call
- func (_c *MockService_DeleteWorkflowRun_Call) Return(_a0 error) *MockService_DeleteWorkflowRun_Call
- func (_c *MockService_DeleteWorkflowRun_Call) Run(run func(ctx context.Context, namespaceName string, runName string)) *MockService_DeleteWorkflowRun_Call
- func (_c *MockService_DeleteWorkflowRun_Call) RunAndReturn(run func(context.Context, string, string) error) *MockService_DeleteWorkflowRun_Call
- type MockService_Expecter
- func (_e *MockService_Expecter) CreateWorkflowRun(ctx interface{}, namespaceName interface{}, wfRun interface{}) *MockService_CreateWorkflowRun_Call
- func (_e *MockService_Expecter) DeleteWorkflowRun(ctx interface{}, namespaceName interface{}, runName interface{}) *MockService_DeleteWorkflowRun_Call
- func (_e *MockService_Expecter) GetWorkflowRun(ctx interface{}, namespaceName interface{}, runName interface{}) *MockService_GetWorkflowRun_Call
- func (_e *MockService_Expecter) GetWorkflowRunEvents(ctx interface{}, namespaceName interface{}, runName interface{}, ...) *MockService_GetWorkflowRunEvents_Call
- func (_e *MockService_Expecter) GetWorkflowRunLogs(ctx interface{}, namespaceName interface{}, runName interface{}, ...) *MockService_GetWorkflowRunLogs_Call
- func (_e *MockService_Expecter) GetWorkflowRunStatus(ctx interface{}, namespaceName interface{}, runName interface{}) *MockService_GetWorkflowRunStatus_Call
- func (_e *MockService_Expecter) ListWorkflowRuns(ctx interface{}, namespaceName interface{}, projectName interface{}, ...) *MockService_ListWorkflowRuns_Call
- func (_e *MockService_Expecter) TriggerWorkflow(ctx interface{}, namespaceName interface{}, projectName interface{}, ...) *MockService_TriggerWorkflow_Call
- func (_e *MockService_Expecter) UpdateWorkflowRun(ctx interface{}, namespaceName interface{}, wfRun interface{}) *MockService_UpdateWorkflowRun_Call
- type MockService_GetWorkflowRunEvents_Call
- func (_c *MockService_GetWorkflowRunEvents_Call) Return(_a0 []models.WorkflowRunEventEntry, _a1 error) *MockService_GetWorkflowRunEvents_Call
- func (_c *MockService_GetWorkflowRunEvents_Call) Run(...) *MockService_GetWorkflowRunEvents_Call
- func (_c *MockService_GetWorkflowRunEvents_Call) RunAndReturn(...) *MockService_GetWorkflowRunEvents_Call
- type MockService_GetWorkflowRunLogs_Call
- func (_c *MockService_GetWorkflowRunLogs_Call) Return(_a0 []models.WorkflowRunLogEntry, _a1 error) *MockService_GetWorkflowRunLogs_Call
- func (_c *MockService_GetWorkflowRunLogs_Call) Run(...) *MockService_GetWorkflowRunLogs_Call
- func (_c *MockService_GetWorkflowRunLogs_Call) RunAndReturn(...) *MockService_GetWorkflowRunLogs_Call
- type MockService_GetWorkflowRunStatus_Call
- func (_c *MockService_GetWorkflowRunStatus_Call) Return(_a0 *models.WorkflowRunStatusResponse, _a1 error) *MockService_GetWorkflowRunStatus_Call
- func (_c *MockService_GetWorkflowRunStatus_Call) Run(run func(ctx context.Context, namespaceName string, runName string)) *MockService_GetWorkflowRunStatus_Call
- func (_c *MockService_GetWorkflowRunStatus_Call) RunAndReturn(...) *MockService_GetWorkflowRunStatus_Call
- type MockService_GetWorkflowRun_Call
- func (_c *MockService_GetWorkflowRun_Call) Return(_a0 *v1alpha1.WorkflowRun, _a1 error) *MockService_GetWorkflowRun_Call
- func (_c *MockService_GetWorkflowRun_Call) Run(run func(ctx context.Context, namespaceName string, runName string)) *MockService_GetWorkflowRun_Call
- func (_c *MockService_GetWorkflowRun_Call) RunAndReturn(run func(context.Context, string, string) (*v1alpha1.WorkflowRun, error)) *MockService_GetWorkflowRun_Call
- type MockService_ListWorkflowRuns_Call
- func (_c *MockService_ListWorkflowRuns_Call) Return(_a0 *services.ListResult[v1alpha1.WorkflowRun], _a1 error) *MockService_ListWorkflowRuns_Call
- func (_c *MockService_ListWorkflowRuns_Call) Run(run func(ctx context.Context, namespaceName string, projectName string, ...)) *MockService_ListWorkflowRuns_Call
- func (_c *MockService_ListWorkflowRuns_Call) RunAndReturn(...) *MockService_ListWorkflowRuns_Call
- type MockService_TriggerWorkflow_Call
- func (_c *MockService_TriggerWorkflow_Call) Return(_a0 *models.WorkflowRunTriggerResponse, _a1 error) *MockService_TriggerWorkflow_Call
- func (_c *MockService_TriggerWorkflow_Call) Run(run func(ctx context.Context, namespaceName string, projectName string, ...)) *MockService_TriggerWorkflow_Call
- func (_c *MockService_TriggerWorkflow_Call) RunAndReturn(...) *MockService_TriggerWorkflow_Call
- type MockService_UpdateWorkflowRun_Call
- func (_c *MockService_UpdateWorkflowRun_Call) Return(_a0 *v1alpha1.WorkflowRun, _a1 error) *MockService_UpdateWorkflowRun_Call
- func (_c *MockService_UpdateWorkflowRun_Call) Run(...) *MockService_UpdateWorkflowRun_Call
- func (_c *MockService_UpdateWorkflowRun_Call) RunAndReturn(...) *MockService_UpdateWorkflowRun_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) CreateWorkflowRun ¶
func (_m *MockService) CreateWorkflowRun(ctx context.Context, namespaceName string, wfRun *v1alpha1.WorkflowRun) (*v1alpha1.WorkflowRun, error)
CreateWorkflowRun provides a mock function with given fields: ctx, namespaceName, wfRun
func (*MockService) DeleteWorkflowRun ¶
func (_m *MockService) DeleteWorkflowRun(ctx context.Context, namespaceName string, runName string) error
DeleteWorkflowRun provides a mock function with given fields: ctx, namespaceName, runName
func (*MockService) EXPECT ¶
func (_m *MockService) EXPECT() *MockService_Expecter
func (*MockService) GetWorkflowRun ¶
func (_m *MockService) GetWorkflowRun(ctx context.Context, namespaceName string, runName string) (*v1alpha1.WorkflowRun, error)
GetWorkflowRun provides a mock function with given fields: ctx, namespaceName, runName
func (*MockService) GetWorkflowRunEvents ¶
func (_m *MockService) GetWorkflowRunEvents(ctx context.Context, namespaceName string, runName string, taskName string) ([]models.WorkflowRunEventEntry, error)
GetWorkflowRunEvents provides a mock function with given fields: ctx, namespaceName, runName, taskName
func (*MockService) GetWorkflowRunLogs ¶
func (_m *MockService) GetWorkflowRunLogs(ctx context.Context, namespaceName string, runName string, taskName string, sinceSeconds *int64) ([]models.WorkflowRunLogEntry, error)
GetWorkflowRunLogs provides a mock function with given fields: ctx, namespaceName, runName, taskName, sinceSeconds
func (*MockService) GetWorkflowRunStatus ¶
func (_m *MockService) GetWorkflowRunStatus(ctx context.Context, namespaceName string, runName string) (*models.WorkflowRunStatusResponse, error)
GetWorkflowRunStatus provides a mock function with given fields: ctx, namespaceName, runName
func (*MockService) ListWorkflowRuns ¶
func (_m *MockService) ListWorkflowRuns(ctx context.Context, namespaceName string, projectName string, componentName string, workflowName string, opts services.ListOptions) (*services.ListResult[v1alpha1.WorkflowRun], error)
ListWorkflowRuns provides a mock function with given fields: ctx, namespaceName, projectName, componentName, workflowName, opts
func (*MockService) TriggerWorkflow ¶
func (_m *MockService) TriggerWorkflow(ctx context.Context, namespaceName string, projectName string, componentName string, commit string) (*models.WorkflowRunTriggerResponse, error)
TriggerWorkflow provides a mock function with given fields: ctx, namespaceName, projectName, componentName, commit
func (*MockService) UpdateWorkflowRun ¶
func (_m *MockService) UpdateWorkflowRun(ctx context.Context, namespaceName string, wfRun *v1alpha1.WorkflowRun) (*v1alpha1.WorkflowRun, error)
UpdateWorkflowRun provides a mock function with given fields: ctx, namespaceName, wfRun
type MockService_CreateWorkflowRun_Call ¶
MockService_CreateWorkflowRun_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateWorkflowRun'
func (*MockService_CreateWorkflowRun_Call) Return ¶
func (_c *MockService_CreateWorkflowRun_Call) Return(_a0 *v1alpha1.WorkflowRun, _a1 error) *MockService_CreateWorkflowRun_Call
func (*MockService_CreateWorkflowRun_Call) Run ¶
func (_c *MockService_CreateWorkflowRun_Call) Run(run func(ctx context.Context, namespaceName string, wfRun *v1alpha1.WorkflowRun)) *MockService_CreateWorkflowRun_Call
func (*MockService_CreateWorkflowRun_Call) RunAndReturn ¶
func (_c *MockService_CreateWorkflowRun_Call) RunAndReturn(run func(context.Context, string, *v1alpha1.WorkflowRun) (*v1alpha1.WorkflowRun, error)) *MockService_CreateWorkflowRun_Call
type MockService_DeleteWorkflowRun_Call ¶
MockService_DeleteWorkflowRun_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteWorkflowRun'
func (*MockService_DeleteWorkflowRun_Call) Return ¶
func (_c *MockService_DeleteWorkflowRun_Call) Return(_a0 error) *MockService_DeleteWorkflowRun_Call
func (*MockService_DeleteWorkflowRun_Call) Run ¶
func (_c *MockService_DeleteWorkflowRun_Call) Run(run func(ctx context.Context, namespaceName string, runName string)) *MockService_DeleteWorkflowRun_Call
func (*MockService_DeleteWorkflowRun_Call) RunAndReturn ¶
func (_c *MockService_DeleteWorkflowRun_Call) RunAndReturn(run func(context.Context, string, string) error) *MockService_DeleteWorkflowRun_Call
type MockService_Expecter ¶
type MockService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockService_Expecter) CreateWorkflowRun ¶
func (_e *MockService_Expecter) CreateWorkflowRun(ctx interface{}, namespaceName interface{}, wfRun interface{}) *MockService_CreateWorkflowRun_Call
CreateWorkflowRun is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- wfRun *v1alpha1.WorkflowRun
func (*MockService_Expecter) DeleteWorkflowRun ¶
func (_e *MockService_Expecter) DeleteWorkflowRun(ctx interface{}, namespaceName interface{}, runName interface{}) *MockService_DeleteWorkflowRun_Call
DeleteWorkflowRun is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- runName string
func (*MockService_Expecter) GetWorkflowRun ¶
func (_e *MockService_Expecter) GetWorkflowRun(ctx interface{}, namespaceName interface{}, runName interface{}) *MockService_GetWorkflowRun_Call
GetWorkflowRun is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- runName string
func (*MockService_Expecter) GetWorkflowRunEvents ¶
func (_e *MockService_Expecter) GetWorkflowRunEvents(ctx interface{}, namespaceName interface{}, runName interface{}, taskName interface{}) *MockService_GetWorkflowRunEvents_Call
GetWorkflowRunEvents is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- runName string
- taskName string
func (*MockService_Expecter) GetWorkflowRunLogs ¶
func (_e *MockService_Expecter) GetWorkflowRunLogs(ctx interface{}, namespaceName interface{}, runName interface{}, taskName interface{}, sinceSeconds interface{}) *MockService_GetWorkflowRunLogs_Call
GetWorkflowRunLogs is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- runName string
- taskName string
- sinceSeconds *int64
func (*MockService_Expecter) GetWorkflowRunStatus ¶
func (_e *MockService_Expecter) GetWorkflowRunStatus(ctx interface{}, namespaceName interface{}, runName interface{}) *MockService_GetWorkflowRunStatus_Call
GetWorkflowRunStatus is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- runName string
func (*MockService_Expecter) ListWorkflowRuns ¶
func (_e *MockService_Expecter) ListWorkflowRuns(ctx interface{}, namespaceName interface{}, projectName interface{}, componentName interface{}, workflowName interface{}, opts interface{}) *MockService_ListWorkflowRuns_Call
ListWorkflowRuns is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- projectName string
- componentName string
- workflowName string
- opts services.ListOptions
func (*MockService_Expecter) TriggerWorkflow ¶
func (_e *MockService_Expecter) TriggerWorkflow(ctx interface{}, namespaceName interface{}, projectName interface{}, componentName interface{}, commit interface{}) *MockService_TriggerWorkflow_Call
TriggerWorkflow is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- projectName string
- componentName string
- commit string
func (*MockService_Expecter) UpdateWorkflowRun ¶
func (_e *MockService_Expecter) UpdateWorkflowRun(ctx interface{}, namespaceName interface{}, wfRun interface{}) *MockService_UpdateWorkflowRun_Call
UpdateWorkflowRun is a helper method to define mock.On call
- ctx context.Context
- namespaceName string
- wfRun *v1alpha1.WorkflowRun
type MockService_GetWorkflowRunEvents_Call ¶
MockService_GetWorkflowRunEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkflowRunEvents'
func (*MockService_GetWorkflowRunEvents_Call) Return ¶
func (_c *MockService_GetWorkflowRunEvents_Call) Return(_a0 []models.WorkflowRunEventEntry, _a1 error) *MockService_GetWorkflowRunEvents_Call
func (*MockService_GetWorkflowRunEvents_Call) Run ¶
func (_c *MockService_GetWorkflowRunEvents_Call) Run(run func(ctx context.Context, namespaceName string, runName string, taskName string)) *MockService_GetWorkflowRunEvents_Call
func (*MockService_GetWorkflowRunEvents_Call) RunAndReturn ¶
func (_c *MockService_GetWorkflowRunEvents_Call) RunAndReturn(run func(context.Context, string, string, string) ([]models.WorkflowRunEventEntry, error)) *MockService_GetWorkflowRunEvents_Call
type MockService_GetWorkflowRunLogs_Call ¶
MockService_GetWorkflowRunLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkflowRunLogs'
func (*MockService_GetWorkflowRunLogs_Call) Return ¶
func (_c *MockService_GetWorkflowRunLogs_Call) Return(_a0 []models.WorkflowRunLogEntry, _a1 error) *MockService_GetWorkflowRunLogs_Call
func (*MockService_GetWorkflowRunLogs_Call) Run ¶
func (_c *MockService_GetWorkflowRunLogs_Call) Run(run func(ctx context.Context, namespaceName string, runName string, taskName string, sinceSeconds *int64)) *MockService_GetWorkflowRunLogs_Call
func (*MockService_GetWorkflowRunLogs_Call) RunAndReturn ¶
func (_c *MockService_GetWorkflowRunLogs_Call) RunAndReturn(run func(context.Context, string, string, string, *int64) ([]models.WorkflowRunLogEntry, error)) *MockService_GetWorkflowRunLogs_Call
type MockService_GetWorkflowRunStatus_Call ¶
MockService_GetWorkflowRunStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkflowRunStatus'
func (*MockService_GetWorkflowRunStatus_Call) Return ¶
func (_c *MockService_GetWorkflowRunStatus_Call) Return(_a0 *models.WorkflowRunStatusResponse, _a1 error) *MockService_GetWorkflowRunStatus_Call
func (*MockService_GetWorkflowRunStatus_Call) Run ¶
func (_c *MockService_GetWorkflowRunStatus_Call) Run(run func(ctx context.Context, namespaceName string, runName string)) *MockService_GetWorkflowRunStatus_Call
func (*MockService_GetWorkflowRunStatus_Call) RunAndReturn ¶
func (_c *MockService_GetWorkflowRunStatus_Call) RunAndReturn(run func(context.Context, string, string) (*models.WorkflowRunStatusResponse, error)) *MockService_GetWorkflowRunStatus_Call
type MockService_GetWorkflowRun_Call ¶
MockService_GetWorkflowRun_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkflowRun'
func (*MockService_GetWorkflowRun_Call) Return ¶
func (_c *MockService_GetWorkflowRun_Call) Return(_a0 *v1alpha1.WorkflowRun, _a1 error) *MockService_GetWorkflowRun_Call
func (*MockService_GetWorkflowRun_Call) Run ¶
func (_c *MockService_GetWorkflowRun_Call) Run(run func(ctx context.Context, namespaceName string, runName string)) *MockService_GetWorkflowRun_Call
func (*MockService_GetWorkflowRun_Call) RunAndReturn ¶
func (_c *MockService_GetWorkflowRun_Call) RunAndReturn(run func(context.Context, string, string) (*v1alpha1.WorkflowRun, error)) *MockService_GetWorkflowRun_Call
type MockService_ListWorkflowRuns_Call ¶
MockService_ListWorkflowRuns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListWorkflowRuns'
func (*MockService_ListWorkflowRuns_Call) Return ¶
func (_c *MockService_ListWorkflowRuns_Call) Return(_a0 *services.ListResult[v1alpha1.WorkflowRun], _a1 error) *MockService_ListWorkflowRuns_Call
func (*MockService_ListWorkflowRuns_Call) Run ¶
func (_c *MockService_ListWorkflowRuns_Call) Run(run func(ctx context.Context, namespaceName string, projectName string, componentName string, workflowName string, opts services.ListOptions)) *MockService_ListWorkflowRuns_Call
func (*MockService_ListWorkflowRuns_Call) RunAndReturn ¶
func (_c *MockService_ListWorkflowRuns_Call) RunAndReturn(run func(context.Context, string, string, string, string, services.ListOptions) (*services.ListResult[v1alpha1.WorkflowRun], error)) *MockService_ListWorkflowRuns_Call
type MockService_TriggerWorkflow_Call ¶
MockService_TriggerWorkflow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerWorkflow'
func (*MockService_TriggerWorkflow_Call) Return ¶
func (_c *MockService_TriggerWorkflow_Call) Return(_a0 *models.WorkflowRunTriggerResponse, _a1 error) *MockService_TriggerWorkflow_Call
func (*MockService_TriggerWorkflow_Call) Run ¶
func (_c *MockService_TriggerWorkflow_Call) Run(run func(ctx context.Context, namespaceName string, projectName string, componentName string, commit string)) *MockService_TriggerWorkflow_Call
func (*MockService_TriggerWorkflow_Call) RunAndReturn ¶
func (_c *MockService_TriggerWorkflow_Call) RunAndReturn(run func(context.Context, string, string, string, string) (*models.WorkflowRunTriggerResponse, error)) *MockService_TriggerWorkflow_Call
type MockService_UpdateWorkflowRun_Call ¶
MockService_UpdateWorkflowRun_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWorkflowRun'
func (*MockService_UpdateWorkflowRun_Call) Return ¶
func (_c *MockService_UpdateWorkflowRun_Call) Return(_a0 *v1alpha1.WorkflowRun, _a1 error) *MockService_UpdateWorkflowRun_Call
func (*MockService_UpdateWorkflowRun_Call) Run ¶
func (_c *MockService_UpdateWorkflowRun_Call) Run(run func(ctx context.Context, namespaceName string, wfRun *v1alpha1.WorkflowRun)) *MockService_UpdateWorkflowRun_Call
func (*MockService_UpdateWorkflowRun_Call) RunAndReturn ¶
func (_c *MockService_UpdateWorkflowRun_Call) RunAndReturn(run func(context.Context, string, *v1alpha1.WorkflowRun) (*v1alpha1.WorkflowRun, error)) *MockService_UpdateWorkflowRun_Call