mock_storage

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_storage is a generated GoMock package.

Package mock_storage is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBackend

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

MockBackend is a mock of Backend interface.

func NewMockBackend

func NewMockBackend(ctrl *gomock.Controller) *MockBackend

NewMockBackend creates a new mock instance.

func (*MockBackend) AddStoragePool

func (m *MockBackend) AddStoragePool(arg0 storage.Pool)

AddStoragePool mocks base method.

func (*MockBackend) AddVolume

func (m *MockBackend) AddVolume(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 storage.Pool, arg3 map[string]storageattribute.Request, arg4 bool) (*storage.Volume, error)

AddVolume mocks base method.

func (*MockBackend) BackendUUID

func (m *MockBackend) BackendUUID() string

BackendUUID mocks base method.

func (*MockBackend) CanMirror

func (m *MockBackend) CanMirror() bool

CanMirror mocks base method.

func (*MockBackend) CanSnapshot

func (m *MockBackend) CanSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) error

CanSnapshot mocks base method.

func (*MockBackend) CloneVolume

func (m *MockBackend) CloneVolume(arg0 context.Context, arg1, arg2 *storage.VolumeConfig, arg3 storage.Pool, arg4 bool) (*storage.Volume, error)

CloneVolume mocks base method.

func (*MockBackend) ConfigRef

func (m *MockBackend) ConfigRef() string

ConfigRef mocks base method.

func (*MockBackend) ConstructExternal

func (m *MockBackend) ConstructExternal(arg0 context.Context) *storage.BackendExternal

ConstructExternal mocks base method.

func (*MockBackend) ConstructPersistent

func (m *MockBackend) ConstructPersistent(arg0 context.Context) *storage.BackendPersistent

ConstructPersistent mocks base method.

func (*MockBackend) CreateSnapshot

func (m *MockBackend) CreateSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) (*storage.Snapshot, error)

CreateSnapshot mocks base method.

func (*MockBackend) DeleteSnapshot

func (m *MockBackend) DeleteSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) error

DeleteSnapshot mocks base method.

func (*MockBackend) Driver

func (m *MockBackend) Driver() storage.Driver

Driver mocks base method.

func (*MockBackend) EXPECT

func (m *MockBackend) EXPECT() *MockBackendMockRecorder

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

func (*MockBackend) EnablePublishEnforcement

func (m *MockBackend) EnablePublishEnforcement(arg0 context.Context, arg1 *storage.Volume) error

EnablePublishEnforcement mocks base method.

func (*MockBackend) GetChapInfo

func (m *MockBackend) GetChapInfo(arg0 context.Context, arg1, arg2 string) (*utils.IscsiChapInfo, error)

GetChapInfo mocks base method.

func (*MockBackend) GetDebugTraceFlags

func (m *MockBackend) GetDebugTraceFlags(arg0 context.Context) map[string]bool

GetDebugTraceFlags mocks base method.

func (*MockBackend) GetDriverName

func (m *MockBackend) GetDriverName() string

GetDriverName mocks base method.

func (*MockBackend) GetPhysicalPoolNames

func (m *MockBackend) GetPhysicalPoolNames(arg0 context.Context) []string

GetPhysicalPoolNames mocks base method.

func (*MockBackend) GetProtocol

func (m *MockBackend) GetProtocol(arg0 context.Context) config.Protocol

GetProtocol mocks base method.

func (*MockBackend) GetSnapshot

func (m *MockBackend) GetSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) (*storage.Snapshot, error)

GetSnapshot mocks base method.

func (*MockBackend) GetSnapshots

func (m *MockBackend) GetSnapshots(arg0 context.Context, arg1 *storage.VolumeConfig) ([]*storage.Snapshot, error)

GetSnapshots mocks base method.

func (*MockBackend) GetUpdateType

func (m *MockBackend) GetUpdateType(arg0 context.Context, arg1 storage.Backend) *roaring.Bitmap

GetUpdateType mocks base method.

func (*MockBackend) GetVolumeExternal

func (m *MockBackend) GetVolumeExternal(arg0 context.Context, arg1 string) (*storage.VolumeExternal, error)

GetVolumeExternal mocks base method.

func (*MockBackend) HasVolumes

func (m *MockBackend) HasVolumes() bool

HasVolumes mocks base method.

func (*MockBackend) ImportVolume

func (m *MockBackend) ImportVolume(arg0 context.Context, arg1 *storage.VolumeConfig) (*storage.Volume, error)

ImportVolume mocks base method.

func (*MockBackend) InvalidateNodeAccess

func (m *MockBackend) InvalidateNodeAccess()

InvalidateNodeAccess mocks base method.

func (*MockBackend) IsCredentialsFieldSet

func (m *MockBackend) IsCredentialsFieldSet(arg0 context.Context) bool

IsCredentialsFieldSet mocks base method.

func (*MockBackend) Name

func (m *MockBackend) Name() string

Name mocks base method.

func (*MockBackend) Online

func (m *MockBackend) Online() bool

Online mocks base method.

func (*MockBackend) PublishVolume

func (m *MockBackend) PublishVolume(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 *utils.VolumePublishInfo) error

PublishVolume mocks base method.

func (*MockBackend) ReconcileNodeAccess

func (m *MockBackend) ReconcileNodeAccess(arg0 context.Context, arg1 []*utils.Node) error

ReconcileNodeAccess mocks base method.

func (*MockBackend) RemoveCachedVolume

func (m *MockBackend) RemoveCachedVolume(arg0 string)

RemoveCachedVolume mocks base method.

func (*MockBackend) RemoveVolume

func (m *MockBackend) RemoveVolume(arg0 context.Context, arg1 *storage.VolumeConfig) error

RemoveVolume mocks base method.

func (*MockBackend) RenameVolume

func (m *MockBackend) RenameVolume(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 string) error

RenameVolume mocks base method.

func (*MockBackend) ResizeVolume

func (m *MockBackend) ResizeVolume(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 string) error

ResizeVolume mocks base method.

func (*MockBackend) RestoreSnapshot

func (m *MockBackend) RestoreSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) error

RestoreSnapshot mocks base method.

func (*MockBackend) SetBackendUUID

func (m *MockBackend) SetBackendUUID(arg0 string)

SetBackendUUID mocks base method.

func (*MockBackend) SetConfigRef

func (m *MockBackend) SetConfigRef(arg0 string)

SetConfigRef mocks base method.

func (*MockBackend) SetDriver

func (m *MockBackend) SetDriver(arg0 storage.Driver)

SetDriver mocks base method.

func (*MockBackend) SetName

func (m *MockBackend) SetName(arg0 string)

SetName mocks base method.

func (*MockBackend) SetOnline

func (m *MockBackend) SetOnline(arg0 bool)

SetOnline mocks base method.

func (*MockBackend) SetState

func (m *MockBackend) SetState(arg0 storage.BackendState)

SetState mocks base method.

func (*MockBackend) SetStorage

func (m *MockBackend) SetStorage(arg0 map[string]storage.Pool)

SetStorage mocks base method.

func (*MockBackend) SetVolumes

func (m *MockBackend) SetVolumes(arg0 map[string]*storage.Volume)

SetVolumes mocks base method.

func (*MockBackend) State

func (m *MockBackend) State() storage.BackendState

State mocks base method.

func (*MockBackend) Storage

func (m *MockBackend) Storage() map[string]storage.Pool

Storage mocks base method.

func (*MockBackend) Terminate

func (m *MockBackend) Terminate(arg0 context.Context)

Terminate mocks base method.

func (*MockBackend) UnpublishVolume

func (m *MockBackend) UnpublishVolume(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 *utils.VolumePublishInfo) error

UnpublishVolume mocks base method.

func (*MockBackend) Volumes

func (m *MockBackend) Volumes() map[string]*storage.Volume

Volumes mocks base method.

type MockBackendMockRecorder

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

MockBackendMockRecorder is the mock recorder for MockBackend.

func (*MockBackendMockRecorder) AddStoragePool

func (mr *MockBackendMockRecorder) AddStoragePool(arg0 interface{}) *gomock.Call

AddStoragePool indicates an expected call of AddStoragePool.

func (*MockBackendMockRecorder) AddVolume

func (mr *MockBackendMockRecorder) AddVolume(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

AddVolume indicates an expected call of AddVolume.

func (*MockBackendMockRecorder) BackendUUID

func (mr *MockBackendMockRecorder) BackendUUID() *gomock.Call

BackendUUID indicates an expected call of BackendUUID.

func (*MockBackendMockRecorder) CanMirror

func (mr *MockBackendMockRecorder) CanMirror() *gomock.Call

CanMirror indicates an expected call of CanMirror.

func (*MockBackendMockRecorder) CanSnapshot

func (mr *MockBackendMockRecorder) CanSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

CanSnapshot indicates an expected call of CanSnapshot.

func (*MockBackendMockRecorder) CloneVolume

func (mr *MockBackendMockRecorder) CloneVolume(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

CloneVolume indicates an expected call of CloneVolume.

func (*MockBackendMockRecorder) ConfigRef

func (mr *MockBackendMockRecorder) ConfigRef() *gomock.Call

ConfigRef indicates an expected call of ConfigRef.

func (*MockBackendMockRecorder) ConstructExternal

func (mr *MockBackendMockRecorder) ConstructExternal(arg0 interface{}) *gomock.Call

ConstructExternal indicates an expected call of ConstructExternal.

func (*MockBackendMockRecorder) ConstructPersistent

func (mr *MockBackendMockRecorder) ConstructPersistent(arg0 interface{}) *gomock.Call

ConstructPersistent indicates an expected call of ConstructPersistent.

func (*MockBackendMockRecorder) CreateSnapshot

func (mr *MockBackendMockRecorder) CreateSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

CreateSnapshot indicates an expected call of CreateSnapshot.

func (*MockBackendMockRecorder) DeleteSnapshot

func (mr *MockBackendMockRecorder) DeleteSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteSnapshot indicates an expected call of DeleteSnapshot.

func (*MockBackendMockRecorder) Driver

func (mr *MockBackendMockRecorder) Driver() *gomock.Call

Driver indicates an expected call of Driver.

func (*MockBackendMockRecorder) EnablePublishEnforcement

func (mr *MockBackendMockRecorder) EnablePublishEnforcement(arg0, arg1 interface{}) *gomock.Call

EnablePublishEnforcement indicates an expected call of EnablePublishEnforcement.

func (*MockBackendMockRecorder) GetChapInfo

func (mr *MockBackendMockRecorder) GetChapInfo(arg0, arg1, arg2 interface{}) *gomock.Call

GetChapInfo indicates an expected call of GetChapInfo.

func (*MockBackendMockRecorder) GetDebugTraceFlags

func (mr *MockBackendMockRecorder) GetDebugTraceFlags(arg0 interface{}) *gomock.Call

GetDebugTraceFlags indicates an expected call of GetDebugTraceFlags.

func (*MockBackendMockRecorder) GetDriverName

func (mr *MockBackendMockRecorder) GetDriverName() *gomock.Call

GetDriverName indicates an expected call of GetDriverName.

func (*MockBackendMockRecorder) GetPhysicalPoolNames

func (mr *MockBackendMockRecorder) GetPhysicalPoolNames(arg0 interface{}) *gomock.Call

GetPhysicalPoolNames indicates an expected call of GetPhysicalPoolNames.

func (*MockBackendMockRecorder) GetProtocol

func (mr *MockBackendMockRecorder) GetProtocol(arg0 interface{}) *gomock.Call

GetProtocol indicates an expected call of GetProtocol.

func (*MockBackendMockRecorder) GetSnapshot

func (mr *MockBackendMockRecorder) GetSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

GetSnapshot indicates an expected call of GetSnapshot.

func (*MockBackendMockRecorder) GetSnapshots

func (mr *MockBackendMockRecorder) GetSnapshots(arg0, arg1 interface{}) *gomock.Call

GetSnapshots indicates an expected call of GetSnapshots.

func (*MockBackendMockRecorder) GetUpdateType

func (mr *MockBackendMockRecorder) GetUpdateType(arg0, arg1 interface{}) *gomock.Call

GetUpdateType indicates an expected call of GetUpdateType.

func (*MockBackendMockRecorder) GetVolumeExternal

func (mr *MockBackendMockRecorder) GetVolumeExternal(arg0, arg1 interface{}) *gomock.Call

GetVolumeExternal indicates an expected call of GetVolumeExternal.

func (*MockBackendMockRecorder) HasVolumes

func (mr *MockBackendMockRecorder) HasVolumes() *gomock.Call

HasVolumes indicates an expected call of HasVolumes.

func (*MockBackendMockRecorder) ImportVolume

func (mr *MockBackendMockRecorder) ImportVolume(arg0, arg1 interface{}) *gomock.Call

ImportVolume indicates an expected call of ImportVolume.

func (*MockBackendMockRecorder) InvalidateNodeAccess

func (mr *MockBackendMockRecorder) InvalidateNodeAccess() *gomock.Call

InvalidateNodeAccess indicates an expected call of InvalidateNodeAccess.

func (*MockBackendMockRecorder) IsCredentialsFieldSet

func (mr *MockBackendMockRecorder) IsCredentialsFieldSet(arg0 interface{}) *gomock.Call

IsCredentialsFieldSet indicates an expected call of IsCredentialsFieldSet.

func (*MockBackendMockRecorder) Name

func (mr *MockBackendMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockBackendMockRecorder) Online

func (mr *MockBackendMockRecorder) Online() *gomock.Call

Online indicates an expected call of Online.

func (*MockBackendMockRecorder) PublishVolume

func (mr *MockBackendMockRecorder) PublishVolume(arg0, arg1, arg2 interface{}) *gomock.Call

PublishVolume indicates an expected call of PublishVolume.

func (*MockBackendMockRecorder) ReconcileNodeAccess

func (mr *MockBackendMockRecorder) ReconcileNodeAccess(arg0, arg1 interface{}) *gomock.Call

ReconcileNodeAccess indicates an expected call of ReconcileNodeAccess.

func (*MockBackendMockRecorder) RemoveCachedVolume

func (mr *MockBackendMockRecorder) RemoveCachedVolume(arg0 interface{}) *gomock.Call

RemoveCachedVolume indicates an expected call of RemoveCachedVolume.

func (*MockBackendMockRecorder) RemoveVolume

func (mr *MockBackendMockRecorder) RemoveVolume(arg0, arg1 interface{}) *gomock.Call

RemoveVolume indicates an expected call of RemoveVolume.

func (*MockBackendMockRecorder) RenameVolume

func (mr *MockBackendMockRecorder) RenameVolume(arg0, arg1, arg2 interface{}) *gomock.Call

RenameVolume indicates an expected call of RenameVolume.

func (*MockBackendMockRecorder) ResizeVolume

func (mr *MockBackendMockRecorder) ResizeVolume(arg0, arg1, arg2 interface{}) *gomock.Call

ResizeVolume indicates an expected call of ResizeVolume.

func (*MockBackendMockRecorder) RestoreSnapshot

func (mr *MockBackendMockRecorder) RestoreSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

RestoreSnapshot indicates an expected call of RestoreSnapshot.

func (*MockBackendMockRecorder) SetBackendUUID

func (mr *MockBackendMockRecorder) SetBackendUUID(arg0 interface{}) *gomock.Call

SetBackendUUID indicates an expected call of SetBackendUUID.

func (*MockBackendMockRecorder) SetConfigRef

func (mr *MockBackendMockRecorder) SetConfigRef(arg0 interface{}) *gomock.Call

SetConfigRef indicates an expected call of SetConfigRef.

func (*MockBackendMockRecorder) SetDriver

func (mr *MockBackendMockRecorder) SetDriver(arg0 interface{}) *gomock.Call

SetDriver indicates an expected call of SetDriver.

func (*MockBackendMockRecorder) SetName

func (mr *MockBackendMockRecorder) SetName(arg0 interface{}) *gomock.Call

SetName indicates an expected call of SetName.

func (*MockBackendMockRecorder) SetOnline

func (mr *MockBackendMockRecorder) SetOnline(arg0 interface{}) *gomock.Call

SetOnline indicates an expected call of SetOnline.

func (*MockBackendMockRecorder) SetState

func (mr *MockBackendMockRecorder) SetState(arg0 interface{}) *gomock.Call

SetState indicates an expected call of SetState.

func (*MockBackendMockRecorder) SetStorage

func (mr *MockBackendMockRecorder) SetStorage(arg0 interface{}) *gomock.Call

SetStorage indicates an expected call of SetStorage.

func (*MockBackendMockRecorder) SetVolumes

func (mr *MockBackendMockRecorder) SetVolumes(arg0 interface{}) *gomock.Call

SetVolumes indicates an expected call of SetVolumes.

func (*MockBackendMockRecorder) State

func (mr *MockBackendMockRecorder) State() *gomock.Call

State indicates an expected call of State.

func (*MockBackendMockRecorder) Storage

func (mr *MockBackendMockRecorder) Storage() *gomock.Call

Storage indicates an expected call of Storage.

func (*MockBackendMockRecorder) Terminate

func (mr *MockBackendMockRecorder) Terminate(arg0 interface{}) *gomock.Call

Terminate indicates an expected call of Terminate.

func (*MockBackendMockRecorder) UnpublishVolume

func (mr *MockBackendMockRecorder) UnpublishVolume(arg0, arg1, arg2 interface{}) *gomock.Call

UnpublishVolume indicates an expected call of UnpublishVolume.

func (*MockBackendMockRecorder) Volumes

func (mr *MockBackendMockRecorder) Volumes() *gomock.Call

Volumes indicates an expected call of Volumes.

type MockDriver

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

MockDriver is a mock of Driver interface.

func NewMockDriver

func NewMockDriver(ctrl *gomock.Controller) *MockDriver

NewMockDriver creates a new mock instance.

func (*MockDriver) BackendName

func (m *MockDriver) BackendName() string

BackendName mocks base method.

func (*MockDriver) CanSnapshot

func (m *MockDriver) CanSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) error

CanSnapshot mocks base method.

func (*MockDriver) Create

Create mocks base method.

func (*MockDriver) CreateClone

func (m *MockDriver) CreateClone(arg0 context.Context, arg1, arg2 *storage.VolumeConfig, arg3 storage.Pool) error

CreateClone mocks base method.

func (*MockDriver) CreateFollowup

func (m *MockDriver) CreateFollowup(arg0 context.Context, arg1 *storage.VolumeConfig) error

CreateFollowup mocks base method.

func (*MockDriver) CreatePrepare

func (m *MockDriver) CreatePrepare(arg0 context.Context, arg1 *storage.VolumeConfig)

CreatePrepare mocks base method.

func (*MockDriver) CreateSnapshot

func (m *MockDriver) CreateSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) (*storage.Snapshot, error)

CreateSnapshot mocks base method.

func (*MockDriver) DeleteSnapshot

func (m *MockDriver) DeleteSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) error

DeleteSnapshot mocks base method.

func (*MockDriver) Destroy

func (m *MockDriver) Destroy(arg0 context.Context, arg1 *storage.VolumeConfig) error

Destroy mocks base method.

func (*MockDriver) EXPECT

func (m *MockDriver) EXPECT() *MockDriverMockRecorder

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

func (*MockDriver) Get

func (m *MockDriver) Get(arg0 context.Context, arg1 string) error

Get mocks base method.

func (*MockDriver) GetCommonConfig

GetCommonConfig mocks base method.

func (*MockDriver) GetExternalConfig

func (m *MockDriver) GetExternalConfig(arg0 context.Context) interface{}

GetExternalConfig mocks base method.

func (*MockDriver) GetInternalVolumeName

func (m *MockDriver) GetInternalVolumeName(arg0 context.Context, arg1 string) string

GetInternalVolumeName mocks base method.

func (*MockDriver) GetProtocol

func (m *MockDriver) GetProtocol(arg0 context.Context) config.Protocol

GetProtocol mocks base method.

func (*MockDriver) GetSnapshot

func (m *MockDriver) GetSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) (*storage.Snapshot, error)

GetSnapshot mocks base method.

func (*MockDriver) GetSnapshots

func (m *MockDriver) GetSnapshots(arg0 context.Context, arg1 *storage.VolumeConfig) ([]*storage.Snapshot, error)

GetSnapshots mocks base method.

func (*MockDriver) GetStorageBackendPhysicalPoolNames

func (m *MockDriver) GetStorageBackendPhysicalPoolNames(arg0 context.Context) []string

GetStorageBackendPhysicalPoolNames mocks base method.

func (*MockDriver) GetStorageBackendSpecs

func (m *MockDriver) GetStorageBackendSpecs(arg0 context.Context, arg1 storage.Backend) error

GetStorageBackendSpecs mocks base method.

func (*MockDriver) GetUpdateType

func (m *MockDriver) GetUpdateType(arg0 context.Context, arg1 storage.Driver) *roaring.Bitmap

GetUpdateType mocks base method.

func (*MockDriver) GetVolumeExternal

func (m *MockDriver) GetVolumeExternal(arg0 context.Context, arg1 string) (*storage.VolumeExternal, error)

GetVolumeExternal mocks base method.

func (*MockDriver) GetVolumeExternalWrappers

func (m *MockDriver) GetVolumeExternalWrappers(arg0 context.Context, arg1 chan *storage.VolumeExternalWrapper)

GetVolumeExternalWrappers mocks base method.

func (*MockDriver) Import

func (m *MockDriver) Import(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 string) error

Import mocks base method.

func (*MockDriver) Initialize

func (m *MockDriver) Initialize(arg0 context.Context, arg1 config.DriverContext, arg2 string, arg3 *storagedrivers.CommonStorageDriverConfig, arg4 map[string]string, arg5 string) error

Initialize mocks base method.

func (*MockDriver) Initialized

func (m *MockDriver) Initialized() bool

Initialized mocks base method.

func (*MockDriver) Name

func (m *MockDriver) Name() string

Name mocks base method.

func (*MockDriver) Publish

func (m *MockDriver) Publish(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 *utils.VolumePublishInfo) error

Publish mocks base method.

func (*MockDriver) ReconcileNodeAccess

func (m *MockDriver) ReconcileNodeAccess(arg0 context.Context, arg1 []*utils.Node, arg2 string) error

ReconcileNodeAccess mocks base method.

func (*MockDriver) Rename

func (m *MockDriver) Rename(arg0 context.Context, arg1, arg2 string) error

Rename mocks base method.

func (*MockDriver) Resize

func (m *MockDriver) Resize(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 uint64) error

Resize mocks base method.

func (*MockDriver) RestoreSnapshot

func (m *MockDriver) RestoreSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) error

RestoreSnapshot mocks base method.

func (*MockDriver) StoreConfig

func (m *MockDriver) StoreConfig(arg0 context.Context, arg1 *storage.PersistentStorageBackendConfig)

StoreConfig mocks base method.

func (*MockDriver) Terminate

func (m *MockDriver) Terminate(arg0 context.Context, arg1 string)

Terminate mocks base method.

type MockDriverMockRecorder

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

MockDriverMockRecorder is the mock recorder for MockDriver.

func (*MockDriverMockRecorder) BackendName

func (mr *MockDriverMockRecorder) BackendName() *gomock.Call

BackendName indicates an expected call of BackendName.

func (*MockDriverMockRecorder) CanSnapshot

func (mr *MockDriverMockRecorder) CanSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

CanSnapshot indicates an expected call of CanSnapshot.

func (*MockDriverMockRecorder) Create

func (mr *MockDriverMockRecorder) Create(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockDriverMockRecorder) CreateClone

func (mr *MockDriverMockRecorder) CreateClone(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CreateClone indicates an expected call of CreateClone.

func (*MockDriverMockRecorder) CreateFollowup

func (mr *MockDriverMockRecorder) CreateFollowup(arg0, arg1 interface{}) *gomock.Call

CreateFollowup indicates an expected call of CreateFollowup.

func (*MockDriverMockRecorder) CreatePrepare

func (mr *MockDriverMockRecorder) CreatePrepare(arg0, arg1 interface{}) *gomock.Call

CreatePrepare indicates an expected call of CreatePrepare.

func (*MockDriverMockRecorder) CreateSnapshot

func (mr *MockDriverMockRecorder) CreateSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

CreateSnapshot indicates an expected call of CreateSnapshot.

func (*MockDriverMockRecorder) DeleteSnapshot

func (mr *MockDriverMockRecorder) DeleteSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteSnapshot indicates an expected call of DeleteSnapshot.

func (*MockDriverMockRecorder) Destroy

func (mr *MockDriverMockRecorder) Destroy(arg0, arg1 interface{}) *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockDriverMockRecorder) Get

func (mr *MockDriverMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockDriverMockRecorder) GetCommonConfig

func (mr *MockDriverMockRecorder) GetCommonConfig(arg0 interface{}) *gomock.Call

GetCommonConfig indicates an expected call of GetCommonConfig.

func (*MockDriverMockRecorder) GetExternalConfig

func (mr *MockDriverMockRecorder) GetExternalConfig(arg0 interface{}) *gomock.Call

GetExternalConfig indicates an expected call of GetExternalConfig.

func (*MockDriverMockRecorder) GetInternalVolumeName

func (mr *MockDriverMockRecorder) GetInternalVolumeName(arg0, arg1 interface{}) *gomock.Call

GetInternalVolumeName indicates an expected call of GetInternalVolumeName.

func (*MockDriverMockRecorder) GetProtocol

func (mr *MockDriverMockRecorder) GetProtocol(arg0 interface{}) *gomock.Call

GetProtocol indicates an expected call of GetProtocol.

func (*MockDriverMockRecorder) GetSnapshot

func (mr *MockDriverMockRecorder) GetSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

GetSnapshot indicates an expected call of GetSnapshot.

func (*MockDriverMockRecorder) GetSnapshots

func (mr *MockDriverMockRecorder) GetSnapshots(arg0, arg1 interface{}) *gomock.Call

GetSnapshots indicates an expected call of GetSnapshots.

func (*MockDriverMockRecorder) GetStorageBackendPhysicalPoolNames

func (mr *MockDriverMockRecorder) GetStorageBackendPhysicalPoolNames(arg0 interface{}) *gomock.Call

GetStorageBackendPhysicalPoolNames indicates an expected call of GetStorageBackendPhysicalPoolNames.

func (*MockDriverMockRecorder) GetStorageBackendSpecs

func (mr *MockDriverMockRecorder) GetStorageBackendSpecs(arg0, arg1 interface{}) *gomock.Call

GetStorageBackendSpecs indicates an expected call of GetStorageBackendSpecs.

func (*MockDriverMockRecorder) GetUpdateType

func (mr *MockDriverMockRecorder) GetUpdateType(arg0, arg1 interface{}) *gomock.Call

GetUpdateType indicates an expected call of GetUpdateType.

func (*MockDriverMockRecorder) GetVolumeExternal

func (mr *MockDriverMockRecorder) GetVolumeExternal(arg0, arg1 interface{}) *gomock.Call

GetVolumeExternal indicates an expected call of GetVolumeExternal.

func (*MockDriverMockRecorder) GetVolumeExternalWrappers

func (mr *MockDriverMockRecorder) GetVolumeExternalWrappers(arg0, arg1 interface{}) *gomock.Call

GetVolumeExternalWrappers indicates an expected call of GetVolumeExternalWrappers.

func (*MockDriverMockRecorder) Import

func (mr *MockDriverMockRecorder) Import(arg0, arg1, arg2 interface{}) *gomock.Call

Import indicates an expected call of Import.

func (*MockDriverMockRecorder) Initialize

func (mr *MockDriverMockRecorder) Initialize(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

Initialize indicates an expected call of Initialize.

func (*MockDriverMockRecorder) Initialized

func (mr *MockDriverMockRecorder) Initialized() *gomock.Call

Initialized indicates an expected call of Initialized.

func (*MockDriverMockRecorder) Name

func (mr *MockDriverMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockDriverMockRecorder) Publish

func (mr *MockDriverMockRecorder) Publish(arg0, arg1, arg2 interface{}) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockDriverMockRecorder) ReconcileNodeAccess

func (mr *MockDriverMockRecorder) ReconcileNodeAccess(arg0, arg1, arg2 interface{}) *gomock.Call

ReconcileNodeAccess indicates an expected call of ReconcileNodeAccess.

func (*MockDriverMockRecorder) Rename

func (mr *MockDriverMockRecorder) Rename(arg0, arg1, arg2 interface{}) *gomock.Call

Rename indicates an expected call of Rename.

func (*MockDriverMockRecorder) Resize

func (mr *MockDriverMockRecorder) Resize(arg0, arg1, arg2 interface{}) *gomock.Call

Resize indicates an expected call of Resize.

func (*MockDriverMockRecorder) RestoreSnapshot

func (mr *MockDriverMockRecorder) RestoreSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

RestoreSnapshot indicates an expected call of RestoreSnapshot.

func (*MockDriverMockRecorder) StoreConfig

func (mr *MockDriverMockRecorder) StoreConfig(arg0, arg1 interface{}) *gomock.Call

StoreConfig indicates an expected call of StoreConfig.

func (*MockDriverMockRecorder) Terminate

func (mr *MockDriverMockRecorder) Terminate(arg0, arg1 interface{}) *gomock.Call

Terminate indicates an expected call of Terminate.

type MockPool

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

MockPool is a mock of Pool interface.

func NewMockPool

func NewMockPool(ctrl *gomock.Controller) *MockPool

NewMockPool creates a new mock instance.

func (*MockPool) AddStorageClass

func (m *MockPool) AddStorageClass(arg0 string)

AddStorageClass mocks base method.

func (*MockPool) Attributes

func (m *MockPool) Attributes() map[string]storageattribute.Offer

Attributes mocks base method.

func (*MockPool) Backend

func (m *MockPool) Backend() storage.Backend

Backend mocks base method.

func (*MockPool) ConstructExternal

func (m *MockPool) ConstructExternal() *storage.PoolExternal

ConstructExternal mocks base method.

func (*MockPool) EXPECT

func (m *MockPool) EXPECT() *MockPoolMockRecorder

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

func (*MockPool) GetLabels

func (m *MockPool) GetLabels(arg0 context.Context, arg1 string) map[string]string

GetLabels mocks base method.

func (*MockPool) GetLabelsJSON

func (m *MockPool) GetLabelsJSON(arg0 context.Context, arg1 string, arg2 int) (string, error)

GetLabelsJSON mocks base method.

func (*MockPool) InternalAttributes

func (m *MockPool) InternalAttributes() map[string]string

InternalAttributes mocks base method.

func (*MockPool) Name

func (m *MockPool) Name() string

Name mocks base method.

func (*MockPool) RemoveStorageClass

func (m *MockPool) RemoveStorageClass(arg0 string) bool

RemoveStorageClass mocks base method.

func (*MockPool) SetAttributes

func (m *MockPool) SetAttributes(arg0 map[string]storageattribute.Offer)

SetAttributes mocks base method.

func (*MockPool) SetBackend

func (m *MockPool) SetBackend(arg0 storage.Backend)

SetBackend mocks base method.

func (*MockPool) SetInternalAttributes

func (m *MockPool) SetInternalAttributes(arg0 map[string]string)

SetInternalAttributes mocks base method.

func (*MockPool) SetName

func (m *MockPool) SetName(arg0 string)

SetName mocks base method.

func (*MockPool) SetStorageClasses

func (m *MockPool) SetStorageClasses(arg0 []string)

SetStorageClasses mocks base method.

func (*MockPool) SetSupportedTopologies

func (m *MockPool) SetSupportedTopologies(arg0 []map[string]string)

SetSupportedTopologies mocks base method.

func (*MockPool) StorageClasses

func (m *MockPool) StorageClasses() []string

StorageClasses mocks base method.

func (*MockPool) SupportedTopologies

func (m *MockPool) SupportedTopologies() []map[string]string

SupportedTopologies mocks base method.

type MockPoolMockRecorder

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

MockPoolMockRecorder is the mock recorder for MockPool.

func (*MockPoolMockRecorder) AddStorageClass

func (mr *MockPoolMockRecorder) AddStorageClass(arg0 interface{}) *gomock.Call

AddStorageClass indicates an expected call of AddStorageClass.

func (*MockPoolMockRecorder) Attributes

func (mr *MockPoolMockRecorder) Attributes() *gomock.Call

Attributes indicates an expected call of Attributes.

func (*MockPoolMockRecorder) Backend

func (mr *MockPoolMockRecorder) Backend() *gomock.Call

Backend indicates an expected call of Backend.

func (*MockPoolMockRecorder) ConstructExternal

func (mr *MockPoolMockRecorder) ConstructExternal() *gomock.Call

ConstructExternal indicates an expected call of ConstructExternal.

func (*MockPoolMockRecorder) GetLabels

func (mr *MockPoolMockRecorder) GetLabels(arg0, arg1 interface{}) *gomock.Call

GetLabels indicates an expected call of GetLabels.

func (*MockPoolMockRecorder) GetLabelsJSON

func (mr *MockPoolMockRecorder) GetLabelsJSON(arg0, arg1, arg2 interface{}) *gomock.Call

GetLabelsJSON indicates an expected call of GetLabelsJSON.

func (*MockPoolMockRecorder) InternalAttributes

func (mr *MockPoolMockRecorder) InternalAttributes() *gomock.Call

InternalAttributes indicates an expected call of InternalAttributes.

func (*MockPoolMockRecorder) Name

func (mr *MockPoolMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockPoolMockRecorder) RemoveStorageClass

func (mr *MockPoolMockRecorder) RemoveStorageClass(arg0 interface{}) *gomock.Call

RemoveStorageClass indicates an expected call of RemoveStorageClass.

func (*MockPoolMockRecorder) SetAttributes

func (mr *MockPoolMockRecorder) SetAttributes(arg0 interface{}) *gomock.Call

SetAttributes indicates an expected call of SetAttributes.

func (*MockPoolMockRecorder) SetBackend

func (mr *MockPoolMockRecorder) SetBackend(arg0 interface{}) *gomock.Call

SetBackend indicates an expected call of SetBackend.

func (*MockPoolMockRecorder) SetInternalAttributes

func (mr *MockPoolMockRecorder) SetInternalAttributes(arg0 interface{}) *gomock.Call

SetInternalAttributes indicates an expected call of SetInternalAttributes.

func (*MockPoolMockRecorder) SetName

func (mr *MockPoolMockRecorder) SetName(arg0 interface{}) *gomock.Call

SetName indicates an expected call of SetName.

func (*MockPoolMockRecorder) SetStorageClasses

func (mr *MockPoolMockRecorder) SetStorageClasses(arg0 interface{}) *gomock.Call

SetStorageClasses indicates an expected call of SetStorageClasses.

func (*MockPoolMockRecorder) SetSupportedTopologies

func (mr *MockPoolMockRecorder) SetSupportedTopologies(arg0 interface{}) *gomock.Call

SetSupportedTopologies indicates an expected call of SetSupportedTopologies.

func (*MockPoolMockRecorder) StorageClasses

func (mr *MockPoolMockRecorder) StorageClasses() *gomock.Call

StorageClasses indicates an expected call of StorageClasses.

func (*MockPoolMockRecorder) SupportedTopologies

func (mr *MockPoolMockRecorder) SupportedTopologies() *gomock.Call

SupportedTopologies indicates an expected call of SupportedTopologies.

Jump to

Keyboard shortcuts

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