ocpbuild

package
v0.0.0-...-2612c09 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Generated by this command:

mockgen -source=helper.go -package=ocpbuild -destination=mock_helper.go

Package ocpbuild is a generated GoMock package.

Index

Constants

View Source
const (
	HashAnnotation = "kmm.node.kubernetes.io/last-hash"
)

Variables

View Source
var ErrNoMatchingBuild = errors.New("no matching Build")

Functions

func GetOCPBuildAnnotations

func GetOCPBuildAnnotations(hash uint64) map[string]string

func GetOCPBuildLabels

func GetOCPBuildLabels(mld *api.ModuleLoaderData, buildType string) map[string]string

func IsOCPBuildChanged

func IsOCPBuildChanged(existingBuild *buildv1.Build, newBuild *buildv1.Build) (bool, error)

Types

type MockOCPBuildsHelper

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

MockOCPBuildsHelper is a mock of OCPBuildsHelper interface.

func NewMockOCPBuildsHelper

func NewMockOCPBuildsHelper(ctrl *gomock.Controller) *MockOCPBuildsHelper

NewMockOCPBuildsHelper creates a new mock instance.

func (*MockOCPBuildsHelper) DeleteOCPBuild

func (m *MockOCPBuildsHelper) DeleteOCPBuild(ctx context.Context, build *v1.Build) error

DeleteOCPBuild mocks base method.

func (*MockOCPBuildsHelper) EXPECT

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

func (*MockOCPBuildsHelper) GetModuleOCPBuildByKernel

func (m *MockOCPBuildsHelper) GetModuleOCPBuildByKernel(ctx context.Context, mld *api.ModuleLoaderData, owner v10.Object) (*v1.Build, error)

GetModuleOCPBuildByKernel mocks base method.

func (*MockOCPBuildsHelper) GetModuleOCPBuilds

func (m *MockOCPBuildsHelper) GetModuleOCPBuilds(ctx context.Context, moduleName, moduleNamespace string, owner v10.Object) ([]v1.Build, error)

GetModuleOCPBuilds mocks base method.

type MockOCPBuildsHelperMockRecorder

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

MockOCPBuildsHelperMockRecorder is the mock recorder for MockOCPBuildsHelper.

func (*MockOCPBuildsHelperMockRecorder) DeleteOCPBuild

func (mr *MockOCPBuildsHelperMockRecorder) DeleteOCPBuild(ctx, build any) *gomock.Call

DeleteOCPBuild indicates an expected call of DeleteOCPBuild.

func (*MockOCPBuildsHelperMockRecorder) GetModuleOCPBuildByKernel

func (mr *MockOCPBuildsHelperMockRecorder) GetModuleOCPBuildByKernel(ctx, mld, owner any) *gomock.Call

GetModuleOCPBuildByKernel indicates an expected call of GetModuleOCPBuildByKernel.

func (*MockOCPBuildsHelperMockRecorder) GetModuleOCPBuilds

func (mr *MockOCPBuildsHelperMockRecorder) GetModuleOCPBuilds(ctx, moduleName, moduleNamespace, owner any) *gomock.Call

GetModuleOCPBuilds indicates an expected call of GetModuleOCPBuilds.

type OCPBuildsHelper

type OCPBuildsHelper interface {
	GetModuleOCPBuildByKernel(ctx context.Context, mld *api.ModuleLoaderData, owner metav1.Object) (*buildv1.Build, error)
	GetModuleOCPBuilds(ctx context.Context, moduleName, moduleNamespace string, owner metav1.Object) ([]buildv1.Build, error)
	DeleteOCPBuild(ctx context.Context, build *buildv1.Build) error
}

func NewOCPBuildsHelper

func NewOCPBuildsHelper(client client.Client, buildType string) OCPBuildsHelper

type Status

type Status string
const (
	StatusCompleted  Status = "completed"
	StatusCreated    Status = "created"
	StatusInProgress Status = "in progress"
	StatusFailed     Status = "failed"
)

Jump to

Keyboard shortcuts

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