mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks holds the generated doubles of the job group's dependencies, for the methods' tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockJobs

type MockJobs struct {
	// contains filtered or unexported fields
}

MockJobs is a mock of Jobs interface.

func NewMockJobs

func NewMockJobs(ctrl *gomock.Controller) *MockJobs

NewMockJobs creates a new mock instance.

func (*MockJobs) DeleteJob

func (m *MockJobs) DeleteJob(ctx context.Context, jobID string) error

DeleteJob mocks base method.

func (*MockJobs) EXPECT

func (m *MockJobs) EXPECT() *MockJobsMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockJobs) GetJobStatus

func (m *MockJobs) GetJobStatus(ctx context.Context, jobID string) (*job.QueuedJob, error)

GetJobStatus mocks base method.

func (*MockJobs) ListDeadLetters

func (m *MockJobs) ListDeadLetters(ctx context.Context, limit int) ([]job.DeadLetter, int, error)

ListDeadLetters mocks base method.

func (*MockJobs) ListJobs

func (m *MockJobs) ListJobs(ctx context.Context, statusFilter types.JobStatus, limit, offset int, keep func(string) bool) (*client.ListJobsResult, error)

ListJobs mocks base method.

func (*MockJobs) RetryJob

func (m *MockJobs) RetryJob(ctx context.Context, jobID, targetHostname string) (*client.CreateJobResult, error)

RetryJob mocks base method.

type MockJobsMockRecorder

type MockJobsMockRecorder struct {
	// contains filtered or unexported fields
}

MockJobsMockRecorder is the mock recorder for MockJobs.

func (*MockJobsMockRecorder) DeleteJob

func (mr *MockJobsMockRecorder) DeleteJob(ctx, jobID any) *gomock.Call

DeleteJob indicates an expected call of DeleteJob.

func (*MockJobsMockRecorder) GetJobStatus

func (mr *MockJobsMockRecorder) GetJobStatus(ctx, jobID any) *gomock.Call

GetJobStatus indicates an expected call of GetJobStatus.

func (*MockJobsMockRecorder) ListDeadLetters

func (mr *MockJobsMockRecorder) ListDeadLetters(ctx, limit any) *gomock.Call

ListDeadLetters indicates an expected call of ListDeadLetters.

func (*MockJobsMockRecorder) ListJobs

func (mr *MockJobsMockRecorder) ListJobs(ctx, statusFilter, limit, offset, keep any) *gomock.Call

ListJobs indicates an expected call of ListJobs.

func (*MockJobsMockRecorder) RetryJob

func (mr *MockJobsMockRecorder) RetryJob(ctx, jobID, targetHostname any) *gomock.Call

RetryJob indicates an expected call of RetryJob.

Jump to

Keyboard shortcuts

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