signjob

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 signjob is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSignJobManager

func NewSignJobManager(
	client client.Client,
	signer Signer,
	jobHelper utils.JobHelper,
	registry registry.Registry) *signJobManager

Types

type MockSigner

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

MockSigner is a mock of Signer interface.

func NewMockSigner

func NewMockSigner(ctrl *gomock.Controller) *MockSigner

NewMockSigner creates a new mock instance.

func (*MockSigner) EXPECT

func (m *MockSigner) EXPECT() *MockSignerMockRecorder

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

func (*MockSigner) MakeJobTemplate

func (m *MockSigner) MakeJobTemplate(ctx context.Context, mld *api.ModuleLoaderData, labels map[string]string, imageToSign string, pushImage bool, owner v10.Object) (*v1.Job, error)

MakeJobTemplate mocks base method.

type MockSignerMockRecorder

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

MockSignerMockRecorder is the mock recorder for MockSigner.

func (*MockSignerMockRecorder) MakeJobTemplate

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

MakeJobTemplate indicates an expected call of MakeJobTemplate.

type Signer

type Signer interface {
	MakeJobTemplate(
		ctx context.Context,
		mld *api.ModuleLoaderData,
		labels map[string]string,
		imageToSign string,
		pushImage bool,
		owner metav1.Object,
	) (*batchv1.Job, error)
}

func NewSigner

func NewSigner(
	client client.Client,
	scheme *runtime.Scheme,
	jobHelper utils.JobHelper) Signer

type TemplateData added in v1.1.0

type TemplateData struct {
	FilesToSign   []string
	SignImage     string
	UnsignedImage string
}

Jump to

Keyboard shortcuts

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