preflight

package
v0.0.0-...-c9e8fde Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 19 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, all driver-containers for the next kernel version are present"
)

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, sr *v1beta1.SpecialResource, runInfo *runtime.RuntimeInformation) (bool, string, error)

PreflightUpgradeCheck mocks base method.

func (*MockPreflightAPI) PrepareRuntimeInfo

func (m *MockPreflightAPI) PrepareRuntimeInfo(ctx context.Context, image string) (*runtime.RuntimeInformation, error)

PrepareRuntimeInfo 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, sr, runInfo interface{}) *gomock.Call

PreflightUpgradeCheck indicates an expected call of PreflightUpgradeCheck.

func (*MockPreflightAPIMockRecorder) PrepareRuntimeInfo

func (mr *MockPreflightAPIMockRecorder) PrepareRuntimeInfo(ctx, image interface{}) *gomock.Call

PrepareRuntimeInfo indicates an expected call of PrepareRuntimeInfo.

type PreflightAPI

type PreflightAPI interface {
	PreflightUpgradeCheck(ctx context.Context,
		sr *srov1beta1.SpecialResource,
		runInfo *runtime.RuntimeInformation) (bool, string, error)
	PrepareRuntimeInfo(ctx context.Context, image string) (*runtime.RuntimeInformation, error)
}

func NewPreflightAPI

func NewPreflightAPI(registryAPI registry.Registry,
	clusterAPI cluster.Cluster,
	clusterInfoAPI upgrade.ClusterInfo,
	resourceAPI resource.ResourceAPI,
	helmerAPI helmer.Helmer,
	runtimeAPI runtime.RuntimeAPI,
	kernelAPI kernel.KernelData) PreflightAPI

Jump to

Keyboard shortcuts

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