mocks

package
v0.113.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSnapshotter

type MockSnapshotter struct {
	// contains filtered or unexported fields
}

MockSnapshotter is a mock of Snapshotter interface.

func NewMockSnapshotter

func NewMockSnapshotter(ctrl *gomock.Controller) *MockSnapshotter

NewMockSnapshotter creates a new mock instance.

func (*MockSnapshotter) Clone

func (m *MockSnapshotter) Clone(ctx context.Context, name, namespace string, waitForReady bool, snapshotMeta, snapshotContentMeta snapshot.ObjectMeta) error

Clone mocks base method.

func (*MockSnapshotter) CloneVolumeSnapshotClass

func (m *MockSnapshotter) CloneVolumeSnapshotClass(ctx context.Context, sourceClassName, targetClassName, newDeletionPolicy string, excludeAnnotations []string) error

CloneVolumeSnapshotClass mocks base method.

func (*MockSnapshotter) Create

func (m *MockSnapshotter) Create(ctx context.Context, pvcName string, snapshotClass *string, waitForReady bool, snapshotMeta snapshot.ObjectMeta) error

Create mocks base method.

func (*MockSnapshotter) CreateContentFromSource

func (m *MockSnapshotter) CreateContentFromSource(ctx context.Context, source *snapshot.Source, snapshotName, namespace, deletionPolicy string, snapshotContentMeta snapshot.ObjectMeta) error

CreateContentFromSource mocks base method.

func (*MockSnapshotter) CreateFromSource

func (m *MockSnapshotter) CreateFromSource(ctx context.Context, source *snapshot.Source, waitForReady bool, snapshotMeta, snapshotContentMeta snapshot.ObjectMeta) error

CreateFromSource mocks base method.

func (*MockSnapshotter) Delete

func (m *MockSnapshotter) Delete(ctx context.Context, name, namespace string) (*v1.VolumeSnapshot, error)

Delete mocks base method.

func (*MockSnapshotter) DeleteContent

func (m *MockSnapshotter) DeleteContent(ctx context.Context, name string) error

DeleteContent mocks base method.

func (*MockSnapshotter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSnapshotter) Get

func (m *MockSnapshotter) Get(ctx context.Context, name, namespace string) (*v1.VolumeSnapshot, error)

Get mocks base method.

func (*MockSnapshotter) GetSource

func (m *MockSnapshotter) GetSource(ctx context.Context, snapshotName, namespace string) (*snapshot.Source, error)

GetSource mocks base method.

func (*MockSnapshotter) GetVolumeSnapshotClass

func (m *MockSnapshotter) GetVolumeSnapshotClass(ctx context.Context, annotationKey, annotationValue, storageClassName string) (string, error)

GetVolumeSnapshotClass mocks base method.

func (*MockSnapshotter) GroupVersion

func (m *MockSnapshotter) GroupVersion(ctx context.Context) schema.GroupVersion

GroupVersion mocks base method.

func (*MockSnapshotter) List

func (m *MockSnapshotter) List(ctx context.Context, namespace string, labels map[string]string) (*v1.VolumeSnapshotList, error)

List mocks base method.

func (*MockSnapshotter) WaitOnReadyToUse

func (m *MockSnapshotter) WaitOnReadyToUse(ctx context.Context, snapshotName, namespace string) error

WaitOnReadyToUse mocks base method.

type MockSnapshotterMockRecorder

type MockSnapshotterMockRecorder struct {
	// contains filtered or unexported fields
}

MockSnapshotterMockRecorder is the mock recorder for MockSnapshotter.

func (*MockSnapshotterMockRecorder) Clone

func (mr *MockSnapshotterMockRecorder) Clone(ctx, name, namespace, waitForReady, snapshotMeta, snapshotContentMeta interface{}) *gomock.Call

Clone indicates an expected call of Clone.

func (*MockSnapshotterMockRecorder) CloneVolumeSnapshotClass

func (mr *MockSnapshotterMockRecorder) CloneVolumeSnapshotClass(ctx, sourceClassName, targetClassName, newDeletionPolicy, excludeAnnotations interface{}) *gomock.Call

CloneVolumeSnapshotClass indicates an expected call of CloneVolumeSnapshotClass.

func (*MockSnapshotterMockRecorder) Create

func (mr *MockSnapshotterMockRecorder) Create(ctx, pvcName, snapshotClass, waitForReady, snapshotMeta interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockSnapshotterMockRecorder) CreateContentFromSource

func (mr *MockSnapshotterMockRecorder) CreateContentFromSource(ctx, source, snapshotName, namespace, deletionPolicy, snapshotContentMeta interface{}) *gomock.Call

CreateContentFromSource indicates an expected call of CreateContentFromSource.

func (*MockSnapshotterMockRecorder) CreateFromSource

func (mr *MockSnapshotterMockRecorder) CreateFromSource(ctx, source, waitForReady, snapshotMeta, snapshotContentMeta interface{}) *gomock.Call

CreateFromSource indicates an expected call of CreateFromSource.

func (*MockSnapshotterMockRecorder) Delete

func (mr *MockSnapshotterMockRecorder) Delete(ctx, name, namespace interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockSnapshotterMockRecorder) DeleteContent

func (mr *MockSnapshotterMockRecorder) DeleteContent(ctx, name interface{}) *gomock.Call

DeleteContent indicates an expected call of DeleteContent.

func (*MockSnapshotterMockRecorder) Get

func (mr *MockSnapshotterMockRecorder) Get(ctx, name, namespace interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockSnapshotterMockRecorder) GetSource

func (mr *MockSnapshotterMockRecorder) GetSource(ctx, snapshotName, namespace interface{}) *gomock.Call

GetSource indicates an expected call of GetSource.

func (*MockSnapshotterMockRecorder) GetVolumeSnapshotClass

func (mr *MockSnapshotterMockRecorder) GetVolumeSnapshotClass(ctx, annotationKey, annotationValue, storageClassName interface{}) *gomock.Call

GetVolumeSnapshotClass indicates an expected call of GetVolumeSnapshotClass.

func (*MockSnapshotterMockRecorder) GroupVersion

func (mr *MockSnapshotterMockRecorder) GroupVersion(ctx interface{}) *gomock.Call

GroupVersion indicates an expected call of GroupVersion.

func (*MockSnapshotterMockRecorder) List

func (mr *MockSnapshotterMockRecorder) List(ctx, namespace, labels interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockSnapshotterMockRecorder) WaitOnReadyToUse

func (mr *MockSnapshotterMockRecorder) WaitOnReadyToUse(ctx, snapshotName, namespace interface{}) *gomock.Call

WaitOnReadyToUse indicates an expected call of WaitOnReadyToUse.

Jump to

Keyboard shortcuts

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