Documentation ¶
Overview ¶
Package module is a generated GoMock package.
Index ¶
- func AppendToTag(name string, tag string) string
- func ImageDigest(ctx context.Context, client client.Client, reg registry.Registry, ...) (string, error)
- func ImageExists(ctx context.Context, client client.Client, reg registry.Registry, ...) (bool, error)
- func IntermediateImageName(name, namespace, targetImage string) string
- func ShouldBeBuilt(mld *api.ModuleLoaderData) bool
- func ShouldBeSigned(mld *api.ModuleLoaderData) bool
- type KernelMapper
- type MockKernelMapper
- type MockKernelMapperMockRecorder
- type MockkernelMapperHelperAPI
- type MockkernelMapperHelperAPIMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToTag ¶
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 ImageExists ¶
func IntermediateImageName ¶
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 ¶
func (m *MockKernelMapper) EXPECT() *MockKernelMapperMockRecorder
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
func (m *MockkernelMapperHelperAPI) EXPECT() *MockkernelMapperHelperAPIMockRecorder
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.