Documentation ¶
Index ¶
- type Controller
- func (_m *Controller) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Controller) Get(ctx context.Context, id int64) (*pkgtask.Task, error)
- func (_m *Controller) GetLog(ctx context.Context, id int64) ([]byte, error)
- func (_m *Controller) List(ctx context.Context, query *q.Query) ([]*pkgtask.Task, error)
- func (_m *Controller) Stop(ctx context.Context, id int64) error
- type ExecutionController
- func (_m *ExecutionController) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *ExecutionController) Delete(ctx context.Context, id int64) error
- func (_m *ExecutionController) Get(ctx context.Context, id int64) (*pkgtask.Execution, error)
- func (_m *ExecutionController) List(ctx context.Context, query *q.Query) ([]*pkgtask.Execution, error)
- func (_m *ExecutionController) Stop(ctx context.Context, id int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
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.
type ExecutionController ¶
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) Delete ¶
func (_m *ExecutionController) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id