jobservice

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 SchedulerController

type SchedulerController struct {
	mock.Mock
}

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) Count

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

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

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

func (*SchedulerController) List

func (_m *SchedulerController) List(ctx context.Context, query *q.Query) ([]*scheduler.Schedule, error)

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

func (*SchedulerController) Paused

func (_m *SchedulerController) Paused(ctx context.Context) (bool, error)

Paused provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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