job

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package job is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuildManager

func NewBuildManager(
	client client.Client,
	maker Maker,
	jobHelper utils.JobHelper,
	registry registry.Registry) *jobManager

Types

type Maker

type Maker interface {
	MakeJobTemplate(
		ctx context.Context,
		mld *api.ModuleLoaderData,
		owner metav1.Object,
		pushImage bool) (*batchv1.Job, error)
}

func NewMaker

func NewMaker(
	client client.Client,
	helper build.Helper,
	jobHelper utils.JobHelper,
	scheme *runtime.Scheme) Maker

type MockMaker

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

MockMaker is a mock of Maker interface.

func NewMockMaker

func NewMockMaker(ctrl *gomock.Controller) *MockMaker

NewMockMaker creates a new mock instance.

func (*MockMaker) EXPECT

func (m *MockMaker) EXPECT() *MockMakerMockRecorder

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

func (*MockMaker) MakeJobTemplate

func (m *MockMaker) MakeJobTemplate(ctx context.Context, mld *api.ModuleLoaderData, owner v10.Object, pushImage bool) (*v1.Job, error)

MakeJobTemplate mocks base method.

type MockMakerMockRecorder

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

MockMakerMockRecorder is the mock recorder for MockMaker.

func (*MockMakerMockRecorder) MakeJobTemplate

func (mr *MockMakerMockRecorder) MakeJobTemplate(ctx, mld, owner, pushImage interface{}) *gomock.Call

MakeJobTemplate indicates an expected call of MakeJobTemplate.

Jump to

Keyboard shortcuts

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