Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockApiVersionFetcher
- type MockApiVersionFetcherMockRecorder
- type MockApplicationCreator
- func (m *MockApplicationCreator) CreatePVC(arg0 context.Context, arg1 *types.CreatePVCArgs) (*v1.PersistentVolumeClaim, error)
- func (m *MockApplicationCreator) CreatePod(arg0 context.Context, arg1 *types.CreatePodArgs) (*v1.Pod, error)
- func (m *MockApplicationCreator) EXPECT() *MockApplicationCreatorMockRecorder
- func (m *MockApplicationCreator) WaitForPVCReady(ctx context.Context, namespace string, pvcName string) error
- func (m *MockApplicationCreator) WaitForPodReady(arg0 context.Context, arg1, arg2 string) error
- type MockApplicationCreatorMockRecorder
- func (mr *MockApplicationCreatorMockRecorder) CreatePVC(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockApplicationCreatorMockRecorder) CreatePod(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockApplicationCreatorMockRecorder) WaitForPVCReady(ctx, namespace, pvcName interface{}) *gomock.Call
- func (mr *MockApplicationCreatorMockRecorder) WaitForPodReady(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockArgumentValidator
- func (m *MockArgumentValidator) EXPECT() *MockArgumentValidatorMockRecorder
- func (m *MockArgumentValidator) FetchPV(arg0 context.Context, arg1 string) (*v10.PersistentVolume, error)
- func (m *MockArgumentValidator) ValidateNamespace(arg0 context.Context, arg1 string) error
- func (m *MockArgumentValidator) ValidatePVC(arg0 context.Context, arg1, arg2 string) (*v10.PersistentVolumeClaim, error)
- func (m *MockArgumentValidator) ValidateStorageClass(arg0 context.Context, arg1 string) (*v11.StorageClass, error)
- func (m *MockArgumentValidator) ValidateVolumeSnapshot(arg0 context.Context, arg1, arg2 string, arg3 *v12.GroupVersionForDiscovery) (*v1.VolumeSnapshot, error)
- func (m *MockArgumentValidator) ValidateVolumeSnapshotClass(arg0 context.Context, arg1 string, arg2 *v12.GroupVersionForDiscovery) (*unstructured.Unstructured, error)
- type MockArgumentValidatorMockRecorder
- func (mr *MockArgumentValidatorMockRecorder) FetchPV(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockArgumentValidatorMockRecorder) ValidateNamespace(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockArgumentValidatorMockRecorder) ValidatePVC(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockArgumentValidatorMockRecorder) ValidateStorageClass(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockArgumentValidatorMockRecorder) ValidateVolumeSnapshot(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockArgumentValidatorMockRecorder) ValidateVolumeSnapshotClass(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockCleaner
- func (m *MockCleaner) DeletePVC(arg0 context.Context, arg1, arg2 string) error
- func (m *MockCleaner) DeletePod(arg0 context.Context, arg1, arg2 string) error
- func (m *MockCleaner) DeleteSnapshot(arg0 context.Context, arg1, arg2 string, arg3 *v1.GroupVersionForDiscovery) error
- func (m *MockCleaner) EXPECT() *MockCleanerMockRecorder
- type MockCleanerMockRecorder
- type MockDataValidator
- type MockDataValidatorMockRecorder
- type MockFileRestoreStepper
- func (m *MockFileRestoreStepper) Cleanup(arg0 context.Context, arg1 *types.FileRestoreArgs, ...)
- func (m *MockFileRestoreStepper) CreateInspectorApplication(arg0 context.Context, arg1 *types.FileRestoreArgs, arg2 *v1.VolumeSnapshot, ...) (*v10.Pod, *v10.PersistentVolumeClaim, string, error)
- func (m *MockFileRestoreStepper) EXPECT() *MockFileRestoreStepperMockRecorder
- func (m *MockFileRestoreStepper) ExecuteCopyCommand(arg0 context.Context, arg1 *types.FileRestoreArgs, arg2 *v10.Pod, arg3 string) (string, error)
- func (m *MockFileRestoreStepper) PortForwardAPod(arg0 *v10.Pod, arg1 int) error
- func (m *MockFileRestoreStepper) ValidateArgs(arg0 context.Context, arg1 *types.FileRestoreArgs) (*v1.VolumeSnapshot, *v10.PersistentVolumeClaim, *v10.PersistentVolumeClaim, ...)
- type MockFileRestoreStepperMockRecorder
- func (mr *MockFileRestoreStepperMockRecorder) Cleanup(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockFileRestoreStepperMockRecorder) CreateInspectorApplication(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockFileRestoreStepperMockRecorder) ExecuteCopyCommand(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockFileRestoreStepperMockRecorder) PortForwardAPod(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileRestoreStepperMockRecorder) ValidateArgs(arg0, arg1 interface{}) *gomock.Call
- type MockKubeExecutor
- type MockKubeExecutorMockRecorder
- type MockPVCBrowserStepper
- func (m *MockPVCBrowserStepper) Cleanup(arg0 context.Context, arg1 *v10.PersistentVolumeClaim, arg2 *v10.Pod, ...)
- func (m *MockPVCBrowserStepper) CreateInspectorApplication(arg0 context.Context, arg1 *types.PVCBrowseArgs, arg2 *v1.VolumeSnapshot, ...) (*v10.Pod, *v10.PersistentVolumeClaim, error)
- func (m *MockPVCBrowserStepper) EXPECT() *MockPVCBrowserStepperMockRecorder
- func (m *MockPVCBrowserStepper) ExecuteTreeCommand(arg0 context.Context, arg1 *types.PVCBrowseArgs, arg2 *v10.Pod) (string, error)
- func (m *MockPVCBrowserStepper) PortForwardAPod(arg0 context.Context, arg1 *v10.Pod, arg2 int) error
- func (m *MockPVCBrowserStepper) SnapshotPVC(arg0 context.Context, arg1 *types.PVCBrowseArgs, arg2 string) (*v1.VolumeSnapshot, error)
- func (m *MockPVCBrowserStepper) ValidateArgs(arg0 context.Context, arg1 *types.PVCBrowseArgs) (*v11.StorageClass, error)
- type MockPVCBrowserStepperMockRecorder
- func (mr *MockPVCBrowserStepperMockRecorder) Cleanup(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockPVCBrowserStepperMockRecorder) CreateInspectorApplication(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockPVCBrowserStepperMockRecorder) ExecuteTreeCommand(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPVCBrowserStepperMockRecorder) PortForwardAPod(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPVCBrowserStepperMockRecorder) SnapshotPVC(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPVCBrowserStepperMockRecorder) ValidateArgs(arg0, arg1 interface{}) *gomock.Call
- type MockPortForwarder
- type MockPortForwarderMockRecorder
- type MockSnapshotBrowserStepper
- func (m *MockSnapshotBrowserStepper) Cleanup(arg0 context.Context, arg1 *v10.PersistentVolumeClaim, arg2 *v10.Pod)
- func (m *MockSnapshotBrowserStepper) CreateInspectorApplication(arg0 context.Context, arg1 *types.SnapshotBrowseArgs, arg2 *v1.VolumeSnapshot, ...) (*v10.Pod, *v10.PersistentVolumeClaim, error)
- func (m *MockSnapshotBrowserStepper) EXPECT() *MockSnapshotBrowserStepperMockRecorder
- func (m *MockSnapshotBrowserStepper) ExecuteTreeCommand(arg0 context.Context, arg1 *types.SnapshotBrowseArgs, arg2 *v10.Pod) (string, error)
- func (m *MockSnapshotBrowserStepper) PortForwardAPod(arg0 context.Context, arg1 *v10.Pod, arg2 int) error
- func (m *MockSnapshotBrowserStepper) ValidateArgs(arg0 context.Context, arg1 *types.SnapshotBrowseArgs) (*v1.VolumeSnapshot, *v11.StorageClass, error)
- type MockSnapshotBrowserStepperMockRecorder
- func (mr *MockSnapshotBrowserStepperMockRecorder) Cleanup(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSnapshotBrowserStepperMockRecorder) CreateInspectorApplication(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockSnapshotBrowserStepperMockRecorder) ExecuteTreeCommand(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSnapshotBrowserStepperMockRecorder) PortForwardAPod(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSnapshotBrowserStepperMockRecorder) ValidateArgs(arg0, arg1 interface{}) *gomock.Call
- type MockSnapshotCreator
- func (m *MockSnapshotCreator) CreateFromSourceCheck(arg0 context.Context, arg1 snapshot.Snapshotter, ...) error
- func (m *MockSnapshotCreator) CreateSnapshot(arg0 context.Context, arg1 snapshot.Snapshotter, ...) (*v1.VolumeSnapshot, error)
- func (m *MockSnapshotCreator) EXPECT() *MockSnapshotCreatorMockRecorder
- func (m *MockSnapshotCreator) NewSnapshotter() (snapshot.Snapshotter, error)
- type MockSnapshotCreatorMockRecorder
- type MockSnapshotRestoreStepper
- func (m *MockSnapshotRestoreStepper) Cleanup(arg0 context.Context, arg1 *types.CSISnapshotRestoreResults)
- func (m *MockSnapshotRestoreStepper) CreateApplication(arg0 context.Context, arg1 *types.CSISnapshotRestoreArgs, arg2 string) (*v10.Pod, *v10.PersistentVolumeClaim, error)
- func (m *MockSnapshotRestoreStepper) EXPECT() *MockSnapshotRestoreStepperMockRecorder
- func (m *MockSnapshotRestoreStepper) RestoreApplication(arg0 context.Context, arg1 *types.CSISnapshotRestoreArgs, ...) (*v10.Pod, *v10.PersistentVolumeClaim, error)
- func (m *MockSnapshotRestoreStepper) SnapshotApplication(arg0 context.Context, arg1 *types.CSISnapshotRestoreArgs, ...) (*v1.VolumeSnapshot, error)
- func (m *MockSnapshotRestoreStepper) ValidateArgs(arg0 context.Context, arg1 *types.CSISnapshotRestoreArgs) error
- func (m *MockSnapshotRestoreStepper) ValidateData(arg0 context.Context, arg1 *v10.Pod, arg2 string) error
- type MockSnapshotRestoreStepperMockRecorder
- func (mr *MockSnapshotRestoreStepperMockRecorder) Cleanup(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSnapshotRestoreStepperMockRecorder) CreateApplication(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSnapshotRestoreStepperMockRecorder) RestoreApplication(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSnapshotRestoreStepperMockRecorder) SnapshotApplication(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockSnapshotRestoreStepperMockRecorder) ValidateArgs(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSnapshotRestoreStepperMockRecorder) ValidateData(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockApiVersionFetcher ¶
type MockApiVersionFetcher struct {
// contains filtered or unexported fields
}
MockApiVersionFetcher is a mock of ApiVersionFetcher interface.
func NewMockApiVersionFetcher ¶
func NewMockApiVersionFetcher(ctrl *gomock.Controller) *MockApiVersionFetcher
NewMockApiVersionFetcher creates a new mock instance.
func (*MockApiVersionFetcher) EXPECT ¶
func (m *MockApiVersionFetcher) EXPECT() *MockApiVersionFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockApiVersionFetcher) GetCSISnapshotGroupVersion ¶
func (m *MockApiVersionFetcher) GetCSISnapshotGroupVersion() (*v1.GroupVersionForDiscovery, error)
GetCSISnapshotGroupVersion mocks base method.
type MockApiVersionFetcherMockRecorder ¶
type MockApiVersionFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockApiVersionFetcherMockRecorder is the mock recorder for MockApiVersionFetcher.
func (*MockApiVersionFetcherMockRecorder) GetCSISnapshotGroupVersion ¶
func (mr *MockApiVersionFetcherMockRecorder) GetCSISnapshotGroupVersion() *gomock.Call
GetCSISnapshotGroupVersion indicates an expected call of GetCSISnapshotGroupVersion.
type MockApplicationCreator ¶
type MockApplicationCreator struct {
// contains filtered or unexported fields
}
MockApplicationCreator is a mock of ApplicationCreator interface.
func NewMockApplicationCreator ¶
func NewMockApplicationCreator(ctrl *gomock.Controller) *MockApplicationCreator
NewMockApplicationCreator creates a new mock instance.
func (*MockApplicationCreator) CreatePVC ¶
func (m *MockApplicationCreator) CreatePVC(arg0 context.Context, arg1 *types.CreatePVCArgs) (*v1.PersistentVolumeClaim, error)
CreatePVC mocks base method.
func (*MockApplicationCreator) CreatePod ¶
func (m *MockApplicationCreator) CreatePod(arg0 context.Context, arg1 *types.CreatePodArgs) (*v1.Pod, error)
CreatePod mocks base method.
func (*MockApplicationCreator) EXPECT ¶
func (m *MockApplicationCreator) EXPECT() *MockApplicationCreatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockApplicationCreator) WaitForPVCReady ¶ added in v0.4.32
func (*MockApplicationCreator) WaitForPodReady ¶
func (m *MockApplicationCreator) WaitForPodReady(arg0 context.Context, arg1, arg2 string) error
WaitForPodReady mocks base method.
type MockApplicationCreatorMockRecorder ¶
type MockApplicationCreatorMockRecorder struct {
// contains filtered or unexported fields
}
MockApplicationCreatorMockRecorder is the mock recorder for MockApplicationCreator.
func (*MockApplicationCreatorMockRecorder) CreatePVC ¶
func (mr *MockApplicationCreatorMockRecorder) CreatePVC(arg0, arg1 interface{}) *gomock.Call
CreatePVC indicates an expected call of CreatePVC.
func (*MockApplicationCreatorMockRecorder) CreatePod ¶
func (mr *MockApplicationCreatorMockRecorder) CreatePod(arg0, arg1 interface{}) *gomock.Call
CreatePod indicates an expected call of CreatePod.
func (*MockApplicationCreatorMockRecorder) WaitForPVCReady ¶ added in v0.4.32
func (mr *MockApplicationCreatorMockRecorder) WaitForPVCReady(ctx, namespace, pvcName interface{}) *gomock.Call
WaitForPodReady indicates an expected call of WaitForPVCReady.
func (*MockApplicationCreatorMockRecorder) WaitForPodReady ¶
func (mr *MockApplicationCreatorMockRecorder) WaitForPodReady(arg0, arg1, arg2 interface{}) *gomock.Call
WaitForPodReady indicates an expected call of WaitForPodReady.
type MockArgumentValidator ¶
type MockArgumentValidator struct {
// contains filtered or unexported fields
}
MockArgumentValidator is a mock of ArgumentValidator interface.
func NewMockArgumentValidator ¶
func NewMockArgumentValidator(ctrl *gomock.Controller) *MockArgumentValidator
NewMockArgumentValidator creates a new mock instance.
func (*MockArgumentValidator) EXPECT ¶
func (m *MockArgumentValidator) EXPECT() *MockArgumentValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockArgumentValidator) FetchPV ¶ added in v0.4.19
func (m *MockArgumentValidator) FetchPV(arg0 context.Context, arg1 string) (*v10.PersistentVolume, error)
FetchPV mocks base method.
func (*MockArgumentValidator) ValidateNamespace ¶
func (m *MockArgumentValidator) ValidateNamespace(arg0 context.Context, arg1 string) error
ValidateNamespace mocks base method.
func (*MockArgumentValidator) ValidatePVC ¶ added in v0.4.19
func (m *MockArgumentValidator) ValidatePVC(arg0 context.Context, arg1, arg2 string) (*v10.PersistentVolumeClaim, error)
ValidatePVC mocks base method.
func (*MockArgumentValidator) ValidateStorageClass ¶
func (m *MockArgumentValidator) ValidateStorageClass(arg0 context.Context, arg1 string) (*v11.StorageClass, error)
ValidateStorageClass mocks base method.
func (*MockArgumentValidator) ValidateVolumeSnapshot ¶ added in v0.4.45
func (m *MockArgumentValidator) ValidateVolumeSnapshot(arg0 context.Context, arg1, arg2 string, arg3 *v12.GroupVersionForDiscovery) (*v1.VolumeSnapshot, error)
ValidateVolumeSnapshot mocks base method.
func (*MockArgumentValidator) ValidateVolumeSnapshotClass ¶
func (m *MockArgumentValidator) ValidateVolumeSnapshotClass(arg0 context.Context, arg1 string, arg2 *v12.GroupVersionForDiscovery) (*unstructured.Unstructured, error)
ValidateVolumeSnapshotClass mocks base method.
type MockArgumentValidatorMockRecorder ¶
type MockArgumentValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockArgumentValidatorMockRecorder is the mock recorder for MockArgumentValidator.
func (*MockArgumentValidatorMockRecorder) FetchPV ¶ added in v0.4.19
func (mr *MockArgumentValidatorMockRecorder) FetchPV(arg0, arg1 interface{}) *gomock.Call
FetchPV indicates an expected call of FetchPV.
func (*MockArgumentValidatorMockRecorder) ValidateNamespace ¶
func (mr *MockArgumentValidatorMockRecorder) ValidateNamespace(arg0, arg1 interface{}) *gomock.Call
ValidateNamespace indicates an expected call of ValidateNamespace.
func (*MockArgumentValidatorMockRecorder) ValidatePVC ¶ added in v0.4.19
func (mr *MockArgumentValidatorMockRecorder) ValidatePVC(arg0, arg1, arg2 interface{}) *gomock.Call
ValidatePVC indicates an expected call of ValidatePVC.
func (*MockArgumentValidatorMockRecorder) ValidateStorageClass ¶
func (mr *MockArgumentValidatorMockRecorder) ValidateStorageClass(arg0, arg1 interface{}) *gomock.Call
ValidateStorageClass indicates an expected call of ValidateStorageClass.
func (*MockArgumentValidatorMockRecorder) ValidateVolumeSnapshot ¶ added in v0.4.45
func (mr *MockArgumentValidatorMockRecorder) ValidateVolumeSnapshot(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ValidateVolumeSnapshot indicates an expected call of ValidateVolumeSnapshot.
func (*MockArgumentValidatorMockRecorder) ValidateVolumeSnapshotClass ¶
func (mr *MockArgumentValidatorMockRecorder) ValidateVolumeSnapshotClass(arg0, arg1, arg2 interface{}) *gomock.Call
ValidateVolumeSnapshotClass indicates an expected call of ValidateVolumeSnapshotClass.
type MockCleaner ¶
type MockCleaner struct {
// contains filtered or unexported fields
}
MockCleaner is a mock of Cleaner interface.
func NewMockCleaner ¶
func NewMockCleaner(ctrl *gomock.Controller) *MockCleaner
NewMockCleaner creates a new mock instance.
func (*MockCleaner) DeletePVC ¶
func (m *MockCleaner) DeletePVC(arg0 context.Context, arg1, arg2 string) error
DeletePVC mocks base method.
func (*MockCleaner) DeletePod ¶
func (m *MockCleaner) DeletePod(arg0 context.Context, arg1, arg2 string) error
DeletePod mocks base method.
func (*MockCleaner) DeleteSnapshot ¶
func (m *MockCleaner) DeleteSnapshot(arg0 context.Context, arg1, arg2 string, arg3 *v1.GroupVersionForDiscovery) error
DeleteSnapshot mocks base method.
func (*MockCleaner) EXPECT ¶
func (m *MockCleaner) EXPECT() *MockCleanerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCleanerMockRecorder ¶
type MockCleanerMockRecorder struct {
// contains filtered or unexported fields
}
MockCleanerMockRecorder is the mock recorder for MockCleaner.
func (*MockCleanerMockRecorder) DeletePVC ¶
func (mr *MockCleanerMockRecorder) DeletePVC(arg0, arg1, arg2 interface{}) *gomock.Call
DeletePVC indicates an expected call of DeletePVC.
func (*MockCleanerMockRecorder) DeletePod ¶
func (mr *MockCleanerMockRecorder) DeletePod(arg0, arg1, arg2 interface{}) *gomock.Call
DeletePod indicates an expected call of DeletePod.
func (*MockCleanerMockRecorder) DeleteSnapshot ¶
func (mr *MockCleanerMockRecorder) DeleteSnapshot(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
DeleteSnapshot indicates an expected call of DeleteSnapshot.
type MockDataValidator ¶
type MockDataValidator struct {
// contains filtered or unexported fields
}
MockDataValidator is a mock of DataValidator interface.
func NewMockDataValidator ¶
func NewMockDataValidator(ctrl *gomock.Controller) *MockDataValidator
NewMockDataValidator creates a new mock instance.
func (*MockDataValidator) EXPECT ¶
func (m *MockDataValidator) EXPECT() *MockDataValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDataValidator) FetchPodData ¶
FetchPodData mocks base method.
type MockDataValidatorMockRecorder ¶
type MockDataValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockDataValidatorMockRecorder is the mock recorder for MockDataValidator.
func (*MockDataValidatorMockRecorder) FetchPodData ¶
func (mr *MockDataValidatorMockRecorder) FetchPodData(arg0, arg1, arg2 interface{}) *gomock.Call
FetchPodData indicates an expected call of FetchPodData.
type MockFileRestoreStepper ¶ added in v0.4.45
type MockFileRestoreStepper struct {
// contains filtered or unexported fields
}
MockFileRestoreStepper is a mock of FileRestoreStepper interface.
func NewMockFileRestoreStepper ¶ added in v0.4.45
func NewMockFileRestoreStepper(ctrl *gomock.Controller) *MockFileRestoreStepper
NewMockFileRestoreStepper creates a new mock instance.
func (*MockFileRestoreStepper) Cleanup ¶ added in v0.4.45
func (m *MockFileRestoreStepper) Cleanup(arg0 context.Context, arg1 *types.FileRestoreArgs, arg2 *v10.PersistentVolumeClaim, arg3 *v10.Pod)
Cleanup mocks base method.
func (*MockFileRestoreStepper) CreateInspectorApplication ¶ added in v0.4.45
func (m *MockFileRestoreStepper) CreateInspectorApplication(arg0 context.Context, arg1 *types.FileRestoreArgs, arg2 *v1.VolumeSnapshot, arg3, arg4 *v10.PersistentVolumeClaim, arg5 *v11.StorageClass) (*v10.Pod, *v10.PersistentVolumeClaim, string, error)
CreateInspectorApplication mocks base method.
func (*MockFileRestoreStepper) EXPECT ¶ added in v0.4.45
func (m *MockFileRestoreStepper) EXPECT() *MockFileRestoreStepperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFileRestoreStepper) ExecuteCopyCommand ¶ added in v0.4.45
func (m *MockFileRestoreStepper) ExecuteCopyCommand(arg0 context.Context, arg1 *types.FileRestoreArgs, arg2 *v10.Pod, arg3 string) (string, error)
ExecuteCopyCommand mocks base method.
func (*MockFileRestoreStepper) PortForwardAPod ¶ added in v0.4.45
func (m *MockFileRestoreStepper) PortForwardAPod(arg0 *v10.Pod, arg1 int) error
PortForwardAPod mocks base method.
func (*MockFileRestoreStepper) ValidateArgs ¶ added in v0.4.45
func (m *MockFileRestoreStepper) ValidateArgs(arg0 context.Context, arg1 *types.FileRestoreArgs) (*v1.VolumeSnapshot, *v10.PersistentVolumeClaim, *v10.PersistentVolumeClaim, *v11.StorageClass, error)
ValidateArgs mocks base method.
type MockFileRestoreStepperMockRecorder ¶ added in v0.4.45
type MockFileRestoreStepperMockRecorder struct {
// contains filtered or unexported fields
}
MockFileRestoreStepperMockRecorder is the mock recorder for MockFileRestoreStepper.
func (*MockFileRestoreStepperMockRecorder) Cleanup ¶ added in v0.4.45
func (mr *MockFileRestoreStepperMockRecorder) Cleanup(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Cleanup indicates an expected call of Cleanup.
func (*MockFileRestoreStepperMockRecorder) CreateInspectorApplication ¶ added in v0.4.45
func (mr *MockFileRestoreStepperMockRecorder) CreateInspectorApplication(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
CreateInspectorApplication indicates an expected call of CreateInspectorApplication.
func (*MockFileRestoreStepperMockRecorder) ExecuteCopyCommand ¶ added in v0.4.45
func (mr *MockFileRestoreStepperMockRecorder) ExecuteCopyCommand(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ExecuteCopyCommand indicates an expected call of ExecuteCopyCommand.
func (*MockFileRestoreStepperMockRecorder) PortForwardAPod ¶ added in v0.4.45
func (mr *MockFileRestoreStepperMockRecorder) PortForwardAPod(arg0, arg1 interface{}) *gomock.Call
PortForwardAPod indicates an expected call of PortForwardAPod.
func (*MockFileRestoreStepperMockRecorder) ValidateArgs ¶ added in v0.4.45
func (mr *MockFileRestoreStepperMockRecorder) ValidateArgs(arg0, arg1 interface{}) *gomock.Call
ValidateArgs indicates an expected call of ValidateArgs.
type MockKubeExecutor ¶ added in v0.4.45
type MockKubeExecutor struct {
// contains filtered or unexported fields
}
MockKubeExecutor is a mock of KubeExecutor interface.
func NewMockKubeExecutor ¶ added in v0.4.45
func NewMockKubeExecutor(ctrl *gomock.Controller) *MockKubeExecutor
NewMockKubeExecutor creates a new mock instance.
func (*MockKubeExecutor) EXPECT ¶ added in v0.4.45
func (m *MockKubeExecutor) EXPECT() *MockKubeExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockKubeExecutorMockRecorder ¶ added in v0.4.45
type MockKubeExecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockKubeExecutorMockRecorder is the mock recorder for MockKubeExecutor.
func (*MockKubeExecutorMockRecorder) Exec ¶ added in v0.4.45
func (mr *MockKubeExecutorMockRecorder) Exec(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
Exec indicates an expected call of Exec.
type MockPVCBrowserStepper ¶ added in v0.4.19
type MockPVCBrowserStepper struct {
// contains filtered or unexported fields
}
MockPVCBrowserStepper is a mock of PVCBrowserStepper interface.
func NewMockPVCBrowserStepper ¶ added in v0.4.19
func NewMockPVCBrowserStepper(ctrl *gomock.Controller) *MockPVCBrowserStepper
NewMockPVCBrowserStepper creates a new mock instance.
func (*MockPVCBrowserStepper) Cleanup ¶ added in v0.4.19
func (m *MockPVCBrowserStepper) Cleanup(arg0 context.Context, arg1 *v10.PersistentVolumeClaim, arg2 *v10.Pod, arg3 *v1.VolumeSnapshot)
Cleanup mocks base method.
func (*MockPVCBrowserStepper) CreateInspectorApplication ¶ added in v0.4.19
func (m *MockPVCBrowserStepper) CreateInspectorApplication(arg0 context.Context, arg1 *types.PVCBrowseArgs, arg2 *v1.VolumeSnapshot, arg3 *v11.StorageClass) (*v10.Pod, *v10.PersistentVolumeClaim, error)
CreateInspectorApplication mocks base method.
func (*MockPVCBrowserStepper) EXPECT ¶ added in v0.4.19
func (m *MockPVCBrowserStepper) EXPECT() *MockPVCBrowserStepperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPVCBrowserStepper) ExecuteTreeCommand ¶ added in v0.4.45
func (m *MockPVCBrowserStepper) ExecuteTreeCommand(arg0 context.Context, arg1 *types.PVCBrowseArgs, arg2 *v10.Pod) (string, error)
ExecuteTreeCommand mocks base method.
func (*MockPVCBrowserStepper) PortForwardAPod ¶ added in v0.4.19
func (m *MockPVCBrowserStepper) PortForwardAPod(arg0 context.Context, arg1 *v10.Pod, arg2 int) error
PortForwardAPod mocks base method.
func (*MockPVCBrowserStepper) SnapshotPVC ¶ added in v0.4.19
func (m *MockPVCBrowserStepper) SnapshotPVC(arg0 context.Context, arg1 *types.PVCBrowseArgs, arg2 string) (*v1.VolumeSnapshot, error)
SnapshotPVC mocks base method.
func (*MockPVCBrowserStepper) ValidateArgs ¶ added in v0.4.19
func (m *MockPVCBrowserStepper) ValidateArgs(arg0 context.Context, arg1 *types.PVCBrowseArgs) (*v11.StorageClass, error)
ValidateArgs mocks base method.
type MockPVCBrowserStepperMockRecorder ¶ added in v0.4.19
type MockPVCBrowserStepperMockRecorder struct {
// contains filtered or unexported fields
}
MockPVCBrowserStepperMockRecorder is the mock recorder for MockPVCBrowserStepper.
func (*MockPVCBrowserStepperMockRecorder) Cleanup ¶ added in v0.4.19
func (mr *MockPVCBrowserStepperMockRecorder) Cleanup(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Cleanup indicates an expected call of Cleanup.
func (*MockPVCBrowserStepperMockRecorder) CreateInspectorApplication ¶ added in v0.4.19
func (mr *MockPVCBrowserStepperMockRecorder) CreateInspectorApplication(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CreateInspectorApplication indicates an expected call of CreateInspectorApplication.
func (*MockPVCBrowserStepperMockRecorder) ExecuteTreeCommand ¶ added in v0.4.45
func (mr *MockPVCBrowserStepperMockRecorder) ExecuteTreeCommand(arg0, arg1, arg2 interface{}) *gomock.Call
ExecuteTreeCommand indicates an expected call of ExecuteTreeCommand.
func (*MockPVCBrowserStepperMockRecorder) PortForwardAPod ¶ added in v0.4.19
func (mr *MockPVCBrowserStepperMockRecorder) PortForwardAPod(arg0, arg1, arg2 interface{}) *gomock.Call
PortForwardAPod indicates an expected call of PortForwardAPod.
func (*MockPVCBrowserStepperMockRecorder) SnapshotPVC ¶ added in v0.4.19
func (mr *MockPVCBrowserStepperMockRecorder) SnapshotPVC(arg0, arg1, arg2 interface{}) *gomock.Call
SnapshotPVC indicates an expected call of SnapshotPVC.
func (*MockPVCBrowserStepperMockRecorder) ValidateArgs ¶ added in v0.4.19
func (mr *MockPVCBrowserStepperMockRecorder) ValidateArgs(arg0, arg1 interface{}) *gomock.Call
ValidateArgs indicates an expected call of ValidateArgs.
type MockPortForwarder ¶ added in v0.4.19
type MockPortForwarder struct {
// contains filtered or unexported fields
}
MockPortForwarder is a mock of PortForwarder interface.
func NewMockPortForwarder ¶ added in v0.4.19
func NewMockPortForwarder(ctrl *gomock.Controller) *MockPortForwarder
NewMockPortForwarder creates a new mock instance.
func (*MockPortForwarder) EXPECT ¶ added in v0.4.19
func (m *MockPortForwarder) EXPECT() *MockPortForwarderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPortForwarder) FetchRestConfig ¶ added in v0.4.19
func (m *MockPortForwarder) FetchRestConfig() (*rest.Config, error)
FetchRestConfig mocks base method.
func (*MockPortForwarder) PortForwardAPod ¶ added in v0.4.19
func (m *MockPortForwarder) PortForwardAPod(arg0 *types.PortForwardAPodRequest) error
PortForwardAPod mocks base method.
type MockPortForwarderMockRecorder ¶ added in v0.4.19
type MockPortForwarderMockRecorder struct {
// contains filtered or unexported fields
}
MockPortForwarderMockRecorder is the mock recorder for MockPortForwarder.
func (*MockPortForwarderMockRecorder) FetchRestConfig ¶ added in v0.4.19
func (mr *MockPortForwarderMockRecorder) FetchRestConfig() *gomock.Call
FetchRestConfig indicates an expected call of FetchRestConfig.
func (*MockPortForwarderMockRecorder) PortForwardAPod ¶ added in v0.4.19
func (mr *MockPortForwarderMockRecorder) PortForwardAPod(arg0 interface{}) *gomock.Call
PortForwardAPod indicates an expected call of PortForwardAPod.
type MockSnapshotBrowserStepper ¶ added in v0.4.45
type MockSnapshotBrowserStepper struct {
// contains filtered or unexported fields
}
MockSnapshotBrowserStepper is a mock of SnapshotBrowserStepper interface.
func NewMockSnapshotBrowserStepper ¶ added in v0.4.45
func NewMockSnapshotBrowserStepper(ctrl *gomock.Controller) *MockSnapshotBrowserStepper
NewMockSnapshotBrowserStepper creates a new mock instance.
func (*MockSnapshotBrowserStepper) Cleanup ¶ added in v0.4.45
func (m *MockSnapshotBrowserStepper) Cleanup(arg0 context.Context, arg1 *v10.PersistentVolumeClaim, arg2 *v10.Pod)
Cleanup mocks base method.
func (*MockSnapshotBrowserStepper) CreateInspectorApplication ¶ added in v0.4.45
func (m *MockSnapshotBrowserStepper) CreateInspectorApplication(arg0 context.Context, arg1 *types.SnapshotBrowseArgs, arg2 *v1.VolumeSnapshot, arg3 *v11.StorageClass) (*v10.Pod, *v10.PersistentVolumeClaim, error)
CreateInspectorApplication mocks base method.
func (*MockSnapshotBrowserStepper) EXPECT ¶ added in v0.4.45
func (m *MockSnapshotBrowserStepper) EXPECT() *MockSnapshotBrowserStepperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSnapshotBrowserStepper) ExecuteTreeCommand ¶ added in v0.4.45
func (m *MockSnapshotBrowserStepper) ExecuteTreeCommand(arg0 context.Context, arg1 *types.SnapshotBrowseArgs, arg2 *v10.Pod) (string, error)
ExecuteTreeCommand mocks base method.
func (*MockSnapshotBrowserStepper) PortForwardAPod ¶ added in v0.4.45
func (m *MockSnapshotBrowserStepper) PortForwardAPod(arg0 context.Context, arg1 *v10.Pod, arg2 int) error
PortForwardAPod mocks base method.
func (*MockSnapshotBrowserStepper) ValidateArgs ¶ added in v0.4.45
func (m *MockSnapshotBrowserStepper) ValidateArgs(arg0 context.Context, arg1 *types.SnapshotBrowseArgs) (*v1.VolumeSnapshot, *v11.StorageClass, error)
ValidateArgs mocks base method.
type MockSnapshotBrowserStepperMockRecorder ¶ added in v0.4.45
type MockSnapshotBrowserStepperMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotBrowserStepperMockRecorder is the mock recorder for MockSnapshotBrowserStepper.
func (*MockSnapshotBrowserStepperMockRecorder) Cleanup ¶ added in v0.4.45
func (mr *MockSnapshotBrowserStepperMockRecorder) Cleanup(arg0, arg1, arg2 interface{}) *gomock.Call
Cleanup indicates an expected call of Cleanup.
func (*MockSnapshotBrowserStepperMockRecorder) CreateInspectorApplication ¶ added in v0.4.45
func (mr *MockSnapshotBrowserStepperMockRecorder) CreateInspectorApplication(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CreateInspectorApplication indicates an expected call of CreateInspectorApplication.
func (*MockSnapshotBrowserStepperMockRecorder) ExecuteTreeCommand ¶ added in v0.4.45
func (mr *MockSnapshotBrowserStepperMockRecorder) ExecuteTreeCommand(arg0, arg1, arg2 interface{}) *gomock.Call
ExecuteTreeCommand indicates an expected call of ExecuteTreeCommand.
func (*MockSnapshotBrowserStepperMockRecorder) PortForwardAPod ¶ added in v0.4.45
func (mr *MockSnapshotBrowserStepperMockRecorder) PortForwardAPod(arg0, arg1, arg2 interface{}) *gomock.Call
PortForwardAPod indicates an expected call of PortForwardAPod.
func (*MockSnapshotBrowserStepperMockRecorder) ValidateArgs ¶ added in v0.4.45
func (mr *MockSnapshotBrowserStepperMockRecorder) ValidateArgs(arg0, arg1 interface{}) *gomock.Call
ValidateArgs indicates an expected call of ValidateArgs.
type MockSnapshotCreator ¶
type MockSnapshotCreator struct {
// contains filtered or unexported fields
}
MockSnapshotCreator is a mock of SnapshotCreator interface.
func NewMockSnapshotCreator ¶
func NewMockSnapshotCreator(ctrl *gomock.Controller) *MockSnapshotCreator
NewMockSnapshotCreator creates a new mock instance.
func (*MockSnapshotCreator) CreateFromSourceCheck ¶
func (m *MockSnapshotCreator) CreateFromSourceCheck(arg0 context.Context, arg1 snapshot.Snapshotter, arg2 *types.CreateFromSourceCheckArgs, arg3 *v10.GroupVersionForDiscovery) error
CreateFromSourceCheck mocks base method.
func (*MockSnapshotCreator) CreateSnapshot ¶
func (m *MockSnapshotCreator) CreateSnapshot(arg0 context.Context, arg1 snapshot.Snapshotter, arg2 *types.CreateSnapshotArgs) (*v1.VolumeSnapshot, error)
CreateSnapshot mocks base method.
func (*MockSnapshotCreator) EXPECT ¶
func (m *MockSnapshotCreator) EXPECT() *MockSnapshotCreatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSnapshotCreator) NewSnapshotter ¶
func (m *MockSnapshotCreator) NewSnapshotter() (snapshot.Snapshotter, error)
NewSnapshotter mocks base method.
type MockSnapshotCreatorMockRecorder ¶
type MockSnapshotCreatorMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotCreatorMockRecorder is the mock recorder for MockSnapshotCreator.
func (*MockSnapshotCreatorMockRecorder) CreateFromSourceCheck ¶
func (mr *MockSnapshotCreatorMockRecorder) CreateFromSourceCheck(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CreateFromSourceCheck indicates an expected call of CreateFromSourceCheck.
func (*MockSnapshotCreatorMockRecorder) CreateSnapshot ¶
func (mr *MockSnapshotCreatorMockRecorder) CreateSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call
CreateSnapshot indicates an expected call of CreateSnapshot.
func (*MockSnapshotCreatorMockRecorder) NewSnapshotter ¶
func (mr *MockSnapshotCreatorMockRecorder) NewSnapshotter() *gomock.Call
NewSnapshotter indicates an expected call of NewSnapshotter.
type MockSnapshotRestoreStepper ¶
type MockSnapshotRestoreStepper struct {
// contains filtered or unexported fields
}
MockSnapshotRestoreStepper is a mock of SnapshotRestoreStepper interface.
func NewMockSnapshotRestoreStepper ¶
func NewMockSnapshotRestoreStepper(ctrl *gomock.Controller) *MockSnapshotRestoreStepper
NewMockSnapshotRestoreStepper creates a new mock instance.
func (*MockSnapshotRestoreStepper) Cleanup ¶
func (m *MockSnapshotRestoreStepper) Cleanup(arg0 context.Context, arg1 *types.CSISnapshotRestoreResults)
Cleanup mocks base method.
func (*MockSnapshotRestoreStepper) CreateApplication ¶
func (m *MockSnapshotRestoreStepper) CreateApplication(arg0 context.Context, arg1 *types.CSISnapshotRestoreArgs, arg2 string) (*v10.Pod, *v10.PersistentVolumeClaim, error)
CreateApplication mocks base method.
func (*MockSnapshotRestoreStepper) EXPECT ¶
func (m *MockSnapshotRestoreStepper) EXPECT() *MockSnapshotRestoreStepperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSnapshotRestoreStepper) RestoreApplication ¶
func (m *MockSnapshotRestoreStepper) RestoreApplication(arg0 context.Context, arg1 *types.CSISnapshotRestoreArgs, arg2 *v1.VolumeSnapshot) (*v10.Pod, *v10.PersistentVolumeClaim, error)
RestoreApplication mocks base method.
func (*MockSnapshotRestoreStepper) SnapshotApplication ¶
func (m *MockSnapshotRestoreStepper) SnapshotApplication(arg0 context.Context, arg1 *types.CSISnapshotRestoreArgs, arg2 *v10.PersistentVolumeClaim, arg3 string) (*v1.VolumeSnapshot, error)
SnapshotApplication mocks base method.
func (*MockSnapshotRestoreStepper) ValidateArgs ¶
func (m *MockSnapshotRestoreStepper) ValidateArgs(arg0 context.Context, arg1 *types.CSISnapshotRestoreArgs) error
ValidateArgs mocks base method.
func (*MockSnapshotRestoreStepper) ValidateData ¶
func (m *MockSnapshotRestoreStepper) ValidateData(arg0 context.Context, arg1 *v10.Pod, arg2 string) error
ValidateData mocks base method.
type MockSnapshotRestoreStepperMockRecorder ¶
type MockSnapshotRestoreStepperMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotRestoreStepperMockRecorder is the mock recorder for MockSnapshotRestoreStepper.
func (*MockSnapshotRestoreStepperMockRecorder) Cleanup ¶
func (mr *MockSnapshotRestoreStepperMockRecorder) Cleanup(arg0, arg1 interface{}) *gomock.Call
Cleanup indicates an expected call of Cleanup.
func (*MockSnapshotRestoreStepperMockRecorder) CreateApplication ¶
func (mr *MockSnapshotRestoreStepperMockRecorder) CreateApplication(arg0, arg1, arg2 interface{}) *gomock.Call
CreateApplication indicates an expected call of CreateApplication.
func (*MockSnapshotRestoreStepperMockRecorder) RestoreApplication ¶
func (mr *MockSnapshotRestoreStepperMockRecorder) RestoreApplication(arg0, arg1, arg2 interface{}) *gomock.Call
RestoreApplication indicates an expected call of RestoreApplication.
func (*MockSnapshotRestoreStepperMockRecorder) SnapshotApplication ¶
func (mr *MockSnapshotRestoreStepperMockRecorder) SnapshotApplication(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SnapshotApplication indicates an expected call of SnapshotApplication.
func (*MockSnapshotRestoreStepperMockRecorder) ValidateArgs ¶
func (mr *MockSnapshotRestoreStepperMockRecorder) ValidateArgs(arg0, arg1 interface{}) *gomock.Call
ValidateArgs indicates an expected call of ValidateArgs.
func (*MockSnapshotRestoreStepperMockRecorder) ValidateData ¶
func (mr *MockSnapshotRestoreStepperMockRecorder) ValidateData(arg0, arg1, arg2 interface{}) *gomock.Call
ValidateData indicates an expected call of ValidateData.
Source Files ¶
- mock_api_version_fetcher.go
- mock_application_creator.go
- mock_argument_validator.go
- mock_cleaner.go
- mock_data_validator.go
- mock_file_restore_stepper.go
- mock_kube_executor.go
- mock_port_forwarder.go
- mock_pvc_browser_stepper.go
- mock_snapshot_browser_stepper.go
- mock_snapshot_creator.go
- mock_snapshot_restore_stepper.go