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
- Variables
- func GetOCPBuildAnnotations(hash uint64) map[string]string
- func GetOCPBuildLabels(mld *api.ModuleLoaderData, buildType string) map[string]string
- func IsOCPBuildChanged(existingBuild *buildv1.Build, newBuild *buildv1.Build) (bool, error)
- type MockOCPBuildsHelper
- func (m *MockOCPBuildsHelper) DeleteOCPBuild(ctx context.Context, build *v1.Build) error
- func (m *MockOCPBuildsHelper) EXPECT() *MockOCPBuildsHelperMockRecorder
- func (m *MockOCPBuildsHelper) GetModuleOCPBuildByKernel(ctx context.Context, mld *api.ModuleLoaderData, owner v10.Object) (*v1.Build, error)
- func (m *MockOCPBuildsHelper) GetModuleOCPBuilds(ctx context.Context, moduleName, moduleNamespace string, owner v10.Object) ([]v1.Build, error)
- type MockOCPBuildsHelperMockRecorder
- func (mr *MockOCPBuildsHelperMockRecorder) DeleteOCPBuild(ctx, build any) *gomock.Call
- func (mr *MockOCPBuildsHelperMockRecorder) GetModuleOCPBuildByKernel(ctx, mld, owner any) *gomock.Call
- func (mr *MockOCPBuildsHelperMockRecorder) GetModuleOCPBuilds(ctx, moduleName, moduleNamespace, owner any) *gomock.Call
- type OCPBuildsHelper
- type Status
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 GetOCPBuildLabels ¶
func GetOCPBuildLabels(mld *api.ModuleLoaderData, buildType string) map[string]string
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 ¶
DeleteOCPBuild mocks base method.
func (*MockOCPBuildsHelper) EXPECT ¶
func (m *MockOCPBuildsHelper) EXPECT() *MockOCPBuildsHelperMockRecorder
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.
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
Click to show internal directories.
Click to hide internal directories.