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 ¶
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, 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
Click to show internal directories.
Click to hide internal directories.