Documentation ¶
Index ¶
- type SchedulerController
- func (_m *SchedulerController) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *SchedulerController) Create(ctx context.Context, vendorType string, cronType string, cron string, ...) (int64, error)
- func (_m *SchedulerController) Delete(ctx context.Context, vendorType string) error
- func (_m *SchedulerController) Get(ctx context.Context, vendorType string) (*scheduler.Schedule, error)
- func (_m *SchedulerController) List(ctx context.Context, query *q.Query) ([]*scheduler.Schedule, error)
- func (_m *SchedulerController) Paused(ctx context.Context) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SchedulerController ¶
SchedulerController is an autogenerated mock type for the SchedulerController type
func NewSchedulerController ¶
func NewSchedulerController(t interface { mock.TestingT Cleanup(func()) }) *SchedulerController
NewSchedulerController creates a new instance of SchedulerController. 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 (*SchedulerController) Create ¶
func (_m *SchedulerController) Create(ctx context.Context, vendorType string, cronType string, cron string, callbackFuncName string, policy interface{}, extrasParam map[string]interface{}) (int64, error)
Create provides a mock function with given fields: ctx, vendorType, cronType, cron, callbackFuncName, policy, extrasParam
func (*SchedulerController) Delete ¶
func (_m *SchedulerController) Delete(ctx context.Context, vendorType string) error
Delete provides a mock function with given fields: ctx, vendorType
func (*SchedulerController) Get ¶
func (_m *SchedulerController) Get(ctx context.Context, vendorType string) (*scheduler.Schedule, error)
Get provides a mock function with given fields: ctx, vendorType
Click to show internal directories.
Click to hide internal directories.