mocks

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

type MockService struct {
	mock.Mock
}

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

type MockService_CreateWorkflowRun_Call struct {
	*mock.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 (*MockService_CreateWorkflowRun_Call) Run

func (*MockService_CreateWorkflowRun_Call) RunAndReturn

type MockService_DeleteWorkflowRun_Call

type MockService_DeleteWorkflowRun_Call struct {
	*mock.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 (*MockService_DeleteWorkflowRun_Call) Run

func (*MockService_DeleteWorkflowRun_Call) RunAndReturn

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

type MockService_GetWorkflowRunEvents_Call struct {
	*mock.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 (*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

type MockService_GetWorkflowRunLogs_Call

type MockService_GetWorkflowRunLogs_Call struct {
	*mock.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 (*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

type MockService_GetWorkflowRunStatus_Call

type MockService_GetWorkflowRunStatus_Call struct {
	*mock.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 (*MockService_GetWorkflowRunStatus_Call) Run

func (*MockService_GetWorkflowRunStatus_Call) RunAndReturn

type MockService_GetWorkflowRun_Call

type MockService_GetWorkflowRun_Call struct {
	*mock.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 (*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

type MockService_ListWorkflowRuns_Call

type MockService_ListWorkflowRuns_Call struct {
	*mock.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 (*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

type MockService_TriggerWorkflow_Call

type MockService_TriggerWorkflow_Call struct {
	*mock.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 (*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

type MockService_UpdateWorkflowRun_Call

type MockService_UpdateWorkflowRun_Call struct {
	*mock.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 (*MockService_UpdateWorkflowRun_Call) Run

func (*MockService_UpdateWorkflowRun_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL