Documentation ¶
Overview ¶
Package preflight is a generated GoMock package.
Index ¶
- Constants
- type MockPreflightAPI
- func (m *MockPreflightAPI) EXPECT() *MockPreflightAPIMockRecorder
- func (m *MockPreflightAPI) PreflightUpgradeCheck(ctx context.Context, sr *v1beta1.SpecialResource, ...) (bool, string, error)
- func (m *MockPreflightAPI) PrepareRuntimeInfo(ctx context.Context, image string) (*runtime.RuntimeInformation, error)
- type MockPreflightAPIMockRecorder
- type PreflightAPI
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 ¶
func (m *MockPreflightAPI) EXPECT() *MockPreflightAPIMockRecorder
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
Click to show internal directories.
Click to hide internal directories.