task

package
v0.0.0-...-d01dfd4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	mock.Mock
}

Controller is an autogenerated mock type for the Controller type

func NewController

func NewController(t interface {
	mock.TestingT
	Cleanup(func())
}) *Controller

NewController creates a new instance of Controller. 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 (*Controller) Count

func (_m *Controller) Count(ctx context.Context, query *q.Query) (int64, error)

Count provides a mock function with given fields: ctx, query

func (*Controller) Get

func (_m *Controller) Get(ctx context.Context, id int64) (*pkgtask.Task, error)

Get provides a mock function with given fields: ctx, id

func (*Controller) GetLog

func (_m *Controller) GetLog(ctx context.Context, id int64) ([]byte, error)

GetLog provides a mock function with given fields: ctx, id

func (*Controller) List

func (_m *Controller) List(ctx context.Context, query *q.Query) ([]*pkgtask.Task, error)

List provides a mock function with given fields: ctx, query

func (*Controller) Stop

func (_m *Controller) Stop(ctx context.Context, id int64) error

Stop provides a mock function with given fields: ctx, id

type ExecutionController

type ExecutionController struct {
	mock.Mock
}

ExecutionController is an autogenerated mock type for the ExecutionController type

func NewExecutionController

func NewExecutionController(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExecutionController

NewExecutionController creates a new instance of ExecutionController. 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 (*ExecutionController) Count

func (_m *ExecutionController) Count(ctx context.Context, query *q.Query) (int64, error)

Count provides a mock function with given fields: ctx, query

func (*ExecutionController) Delete

func (_m *ExecutionController) Delete(ctx context.Context, id int64) error

Delete provides a mock function with given fields: ctx, id

func (*ExecutionController) Get

Get provides a mock function with given fields: ctx, id

func (*ExecutionController) List

func (_m *ExecutionController) List(ctx context.Context, query *q.Query) ([]*pkgtask.Execution, error)

List provides a mock function with given fields: ctx, query

func (*ExecutionController) Stop

func (_m *ExecutionController) Stop(ctx context.Context, id int64) error

Stop provides a mock function with given fields: ctx, id

Jump to

Keyboard shortcuts

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