preflight

package
v0.0.0-...-5d8ad60 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package preflight is a generated GoMock package.

Index

Constants

View Source
const (
	VerificationStatusReasonBuildConfigPresent = "Verification successful, all driver-containers have paired BuildConfigs in the recipe"
	VerificationStatusReasonNoDaemonSet        = "Verification successful, no driver-container present in the recipe"
	VerificationStatusReasonUnknown            = "Verification has not started yet"
	VerificationStatusReasonVerified           = "Verification successful, this Module would be verified again in this Preflight CR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

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, mod *v1beta1.Module, kernelVersion string) (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, mod, kernelVersion interface{}) *gomock.Call

PreflightUpgradeCheck indicates an expected call of PreflightUpgradeCheck.

type PreflightAPI

type PreflightAPI interface {
	PreflightUpgradeCheck(ctx context.Context, mod *kmmv1beta1.Module, kernelVersion string) (bool, string)
}

func NewPreflightAPI

func NewPreflightAPI(
	client client.Client,
	registryAPI registry.Registry,
	kernelAPI module.KernelMapper) PreflightAPI

Jump to

Keyboard shortcuts

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