preflight

package
v0.0.0-...-3ef91bc Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

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

Generated by this command:

mockgen -source=preflight.go -package=preflight -destination=mock_preflight_api.go PreflightAPI, preflightHelperAPI

Package preflight is a generated GoMock package.

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

Generated by this command:

mockgen -source=statusupdater.go -package=preflight -destination=mock_statusupdater.go

Package preflight is a generated GoMock package.

Index

Constants

View Source
const VerificationStatusReasonVerified = "Verification successful (%s), this Module will not be verified again in this Preflight CR"

Variables

This section is empty.

Functions

Types

type MockOCPStatusUpdater

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

MockOCPStatusUpdater is a mock of OCPStatusUpdater interface.

func NewMockOCPStatusUpdater

func NewMockOCPStatusUpdater(ctrl *gomock.Controller) *MockOCPStatusUpdater

NewMockOCPStatusUpdater creates a new mock instance.

func (*MockOCPStatusUpdater) EXPECT

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

func (*MockOCPStatusUpdater) PreflightOCPUpdateStatus

PreflightOCPUpdateStatus mocks base method.

type MockOCPStatusUpdaterMockRecorder

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

MockOCPStatusUpdaterMockRecorder is the mock recorder for MockOCPStatusUpdater.

func (*MockOCPStatusUpdaterMockRecorder) PreflightOCPUpdateStatus

func (mr *MockOCPStatusUpdaterMockRecorder) PreflightOCPUpdateStatus(ctx, pvo, pv any) *gomock.Call

PreflightOCPUpdateStatus indicates an expected call of PreflightOCPUpdateStatus.

type MockPreflightAPI

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

MockPreflightAPI is a mock of PreflightAPI interface.

func NewMockPreflightAPI

func NewMockPreflightAPI(ctrl *gomock.Controller) *MockPreflightAPI

NewMockPreflightAPI creates a new mock instance.

func (*MockPreflightAPI) EXPECT

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

func (*MockPreflightAPI) PreflightUpgradeCheck

func (m *MockPreflightAPI) PreflightUpgradeCheck(ctx context.Context, pv *v1beta2.PreflightValidation, mod *v1beta1.Module) (bool, string)

PreflightUpgradeCheck mocks base method.

type MockPreflightAPIMockRecorder

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

MockPreflightAPIMockRecorder is the mock recorder for MockPreflightAPI.

func (*MockPreflightAPIMockRecorder) PreflightUpgradeCheck

func (mr *MockPreflightAPIMockRecorder) PreflightUpgradeCheck(ctx, pv, mod any) *gomock.Call

PreflightUpgradeCheck indicates an expected call of PreflightUpgradeCheck.

type MockStatusUpdater

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

MockStatusUpdater is a mock of StatusUpdater interface.

func NewMockStatusUpdater

func NewMockStatusUpdater(ctrl *gomock.Controller) *MockStatusUpdater

NewMockStatusUpdater creates a new mock instance.

func (*MockStatusUpdater) EXPECT

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

func (*MockStatusUpdater) PresetStatuses

func (m *MockStatusUpdater) PresetStatuses(ctx context.Context, pv *v1beta2.PreflightValidation, existingModules sets.Set[types.NamespacedName], newModules []types.NamespacedName) error

PresetStatuses mocks base method.

func (*MockStatusUpdater) SetVerificationStage

func (m *MockStatusUpdater) SetVerificationStage(ctx context.Context, preflight *v1beta2.PreflightValidation, moduleName types.NamespacedName, stage string) error

SetVerificationStage mocks base method.

func (*MockStatusUpdater) SetVerificationStatus

func (m *MockStatusUpdater) SetVerificationStatus(ctx context.Context, preflight *v1beta2.PreflightValidation, moduleName types.NamespacedName, verificationStatus, message string) error

SetVerificationStatus mocks base method.

type MockStatusUpdaterMockRecorder

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

MockStatusUpdaterMockRecorder is the mock recorder for MockStatusUpdater.

func (*MockStatusUpdaterMockRecorder) PresetStatuses

func (mr *MockStatusUpdaterMockRecorder) PresetStatuses(ctx, pv, existingModules, newModules any) *gomock.Call

PresetStatuses indicates an expected call of PresetStatuses.

func (*MockStatusUpdaterMockRecorder) SetVerificationStage

func (mr *MockStatusUpdaterMockRecorder) SetVerificationStage(ctx, preflight, moduleName, stage any) *gomock.Call

SetVerificationStage indicates an expected call of SetVerificationStage.

func (*MockStatusUpdaterMockRecorder) SetVerificationStatus

func (mr *MockStatusUpdaterMockRecorder) SetVerificationStatus(ctx, preflight, moduleName, verificationStatus, message any) *gomock.Call

SetVerificationStatus indicates an expected call of SetVerificationStatus.

type MockpreflightHelperAPI

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

MockpreflightHelperAPI is a mock of preflightHelperAPI interface.

func NewMockpreflightHelperAPI

func NewMockpreflightHelperAPI(ctrl *gomock.Controller) *MockpreflightHelperAPI

NewMockpreflightHelperAPI creates a new mock instance.

func (*MockpreflightHelperAPI) EXPECT

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

type MockpreflightHelperAPIMockRecorder

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

MockpreflightHelperAPIMockRecorder is the mock recorder for MockpreflightHelperAPI.

type OCPStatusUpdater

type OCPStatusUpdater interface {
	PreflightOCPUpdateStatus(ctx context.Context, pvo *v1beta2.PreflightValidationOCP, pv *v1beta2.PreflightValidation) error
}

func NewOCPStatusUpdater

func NewOCPStatusUpdater(client client.Client) OCPStatusUpdater

type PreflightAPI

type PreflightAPI interface {
	PreflightUpgradeCheck(ctx context.Context, pv *v1beta2.PreflightValidation, mod *v1beta1.Module) (bool, string)
}

func NewPreflightAPI

func NewPreflightAPI(
	client client.Client,
	buildAPI build.Manager,
	signAPI sign.SignManager,
	registryAPI registry.Registry,
	kernelAPI module.KernelMapper,
	statusUpdater StatusUpdater,
	authFactory auth.RegistryAuthGetterFactory) PreflightAPI

type StatusUpdater

type StatusUpdater interface {
	PresetStatuses(
		ctx context.Context,
		pv *v1beta2.PreflightValidation,
		existingModules sets.Set[types.NamespacedName],
		newModules []types.NamespacedName,
	) error
	SetVerificationStatus(
		ctx context.Context,
		preflight *v1beta2.PreflightValidation,
		moduleName types.NamespacedName,
		verificationStatus string,
		message string,
	) error
	SetVerificationStage(
		ctx context.Context,
		preflight *v1beta2.PreflightValidation,
		moduleName types.NamespacedName,
		stage string,
	) error
}

func NewStatusUpdater

func NewStatusUpdater(client client.Client) StatusUpdater

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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