queuestatus

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) AllJobTypeStatus

func (_m *Manager) AllJobTypeStatus(ctx context.Context) (map[string]bool, error)

AllJobTypeStatus provides a mock function with given fields: ctx

func (*Manager) CreateOrUpdate

func (_m *Manager) CreateOrUpdate(ctx context.Context, status *model.JobQueueStatus) (int64, error)

CreateOrUpdate provides a mock function with given fields: ctx, status

func (*Manager) Get

func (_m *Manager) Get(ctx context.Context, jobType string) (*model.JobQueueStatus, error)

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

func (*Manager) List

func (_m *Manager) List(ctx context.Context) ([]*model.JobQueueStatus, error)

List provides a mock function with given fields: ctx

func (*Manager) UpdateStatus

func (_m *Manager) UpdateStatus(ctx context.Context, jobType string, paused bool) error

UpdateStatus provides a mock function with given fields: ctx, jobType, paused

Jump to

Keyboard shortcuts

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