job

package
v0.0.0-...-3762249 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: job.go

Generated by this command:

mockgen -source=job.go -package=job -destination=mock_job.go JobAPI

Package job is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobAPI

type JobAPI interface {
	GetJob(ctx context.Context, namespace, name string) (*batchv1.Job, error)
	CreatePruneJob(ctx context.Context, nfdInstance *nfdv1.NodeFeatureDiscovery) error
}

func NewJobAPI

func NewJobAPI(client client.Client, scheme *runtime.Scheme) JobAPI

type MockJobAPI

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

MockJobAPI is a mock of JobAPI interface.

func NewMockJobAPI

func NewMockJobAPI(ctrl *gomock.Controller) *MockJobAPI

NewMockJobAPI creates a new mock instance.

func (*MockJobAPI) CreatePruneJob

func (m *MockJobAPI) CreatePruneJob(ctx context.Context, nfdInstance *v1.NodeFeatureDiscovery) error

CreatePruneJob mocks base method.

func (*MockJobAPI) EXPECT

func (m *MockJobAPI) EXPECT() *MockJobAPIMockRecorder

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

func (*MockJobAPI) GetJob

func (m *MockJobAPI) GetJob(ctx context.Context, namespace, name string) (*v10.Job, error)

GetJob mocks base method.

type MockJobAPIMockRecorder

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

MockJobAPIMockRecorder is the mock recorder for MockJobAPI.

func (*MockJobAPIMockRecorder) CreatePruneJob

func (mr *MockJobAPIMockRecorder) CreatePruneJob(ctx, nfdInstance any) *gomock.Call

CreatePruneJob indicates an expected call of CreatePruneJob.

func (*MockJobAPIMockRecorder) GetJob

func (mr *MockJobAPIMockRecorder) GetJob(ctx, namespace, name any) *gomock.Call

GetJob indicates an expected call of GetJob.

Jump to

Keyboard shortcuts

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