module

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

Documentation

Overview

Package module is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToTag

func AppendToTag(name string, tag string) string

AppendToTag adds the specified tag to the image name cleanly, i.e. by avoiding messing up the name or getting "name:-tag"

func ImageDigest added in v1.1.0

func ImageDigest(
	ctx context.Context,
	client client.Client,
	reg registry.Registry,
	mld *api.ModuleLoaderData,
	namespace string,
	imageName string) (string, error)

func ImageExists

func ImageExists(
	ctx context.Context,
	client client.Client,
	reg registry.Registry,
	mld *api.ModuleLoaderData,
	namespace string,
	imageName string) (bool, error)

func IntermediateImageName

func IntermediateImageName(name, namespace, targetImage string) string

IntermediateImageName returns the image name of the pre-signed module image name

func ShouldBeBuilt

func ShouldBeBuilt(mld *api.ModuleLoaderData) bool

ShouldBeBuilt indicates whether the specified ModuleLoaderData of the Module should be built or not.

func ShouldBeSigned

func ShouldBeSigned(mld *api.ModuleLoaderData) bool

ShouldBeSigned indicates whether the specified ModuleLoaderData of the Module should be signed or not.

Types

type KernelMapper

type KernelMapper interface {
	GetModuleLoaderDataForKernel(mod *kmmv1beta1.Module, kernelVersion string) (*api.ModuleLoaderData, error)
}

func NewKernelMapper

func NewKernelMapper(buildHelper build.Helper, signHelper sign.Helper) KernelMapper

type MockKernelMapper

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

MockKernelMapper is a mock of KernelMapper interface.

func NewMockKernelMapper

func NewMockKernelMapper(ctrl *gomock.Controller) *MockKernelMapper

NewMockKernelMapper creates a new mock instance.

func (*MockKernelMapper) EXPECT

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

func (*MockKernelMapper) GetModuleLoaderDataForKernel added in v1.1.0

func (m *MockKernelMapper) GetModuleLoaderDataForKernel(mod *v1beta1.Module, kernelVersion string) (*api.ModuleLoaderData, error)

GetModuleLoaderDataForKernel mocks base method.

type MockKernelMapperMockRecorder

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

MockKernelMapperMockRecorder is the mock recorder for MockKernelMapper.

func (*MockKernelMapperMockRecorder) GetModuleLoaderDataForKernel added in v1.1.0

func (mr *MockKernelMapperMockRecorder) GetModuleLoaderDataForKernel(mod, kernelVersion interface{}) *gomock.Call

GetModuleLoaderDataForKernel indicates an expected call of GetModuleLoaderDataForKernel.

type MockkernelMapperHelperAPI added in v1.1.0

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

MockkernelMapperHelperAPI is a mock of kernelMapperHelperAPI interface.

func NewMockkernelMapperHelperAPI added in v1.1.0

func NewMockkernelMapperHelperAPI(ctrl *gomock.Controller) *MockkernelMapperHelperAPI

NewMockkernelMapperHelperAPI creates a new mock instance.

func (*MockkernelMapperHelperAPI) EXPECT added in v1.1.0

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

type MockkernelMapperHelperAPIMockRecorder added in v1.1.0

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

MockkernelMapperHelperAPIMockRecorder is the mock recorder for MockkernelMapperHelperAPI.

Jump to

Keyboard shortcuts

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