Documentation
¶
Overview ¶
Package mock_storage is a generated GoMock package.
Package mock_storage is a generated GoMock package.
Index ¶
- type MockBackend
- func (m *MockBackend) AddStoragePool(arg0 storage.Pool)
- func (m *MockBackend) AddVolume(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 storage.Pool, ...) (*storage.Volume, error)
- func (m *MockBackend) BackendUUID() string
- func (m *MockBackend) CanEnablePublishEnforcement() bool
- func (m *MockBackend) CanGetState() bool
- func (m *MockBackend) CanMirror() bool
- func (m *MockBackend) CanSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) error
- func (m *MockBackend) CheckMirrorTransferState(arg0 context.Context, arg1 string) (*time.Time, error)
- func (m *MockBackend) CloneVolume(arg0 context.Context, arg1, arg2 *storage.VolumeConfig, arg3 storage.Pool, ...) (*storage.Volume, error)
- func (m *MockBackend) ConfigRef() string
- func (m *MockBackend) ConstructExternal(arg0 context.Context) *storage.BackendExternal
- func (m *MockBackend) ConstructPersistent(arg0 context.Context) *storage.BackendPersistent
- func (m *MockBackend) CreateSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) (*storage.Snapshot, error)
- func (m *MockBackend) DeleteSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) error
- func (m *MockBackend) Driver() storage.Driver
- func (m *MockBackend) EXPECT() *MockBackendMockRecorder
- func (m *MockBackend) EnablePublishEnforcement(arg0 context.Context, arg1 *storage.Volume) error
- func (m *MockBackend) GetBackendState(arg0 context.Context) (string, *roaring.Bitmap)
- func (m *MockBackend) GetChapInfo(arg0 context.Context, arg1, arg2 string) (*models.IscsiChapInfo, error)
- func (m *MockBackend) GetDebugTraceFlags(arg0 context.Context) map[string]bool
- func (m *MockBackend) GetDriverName() string
- func (m *MockBackend) GetMirrorTransferTime(arg0 context.Context, arg1 string) (*time.Time, error)
- func (m *MockBackend) GetPhysicalPoolNames(arg0 context.Context) []string
- func (m *MockBackend) GetProtocol(arg0 context.Context) config.Protocol
- func (m *MockBackend) GetSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) (*storage.Snapshot, error)
- func (m *MockBackend) GetSnapshots(arg0 context.Context, arg1 *storage.VolumeConfig) ([]*storage.Snapshot, error)
- func (m *MockBackend) GetUpdateType(arg0 context.Context, arg1 storage.Backend) *roaring.Bitmap
- func (m *MockBackend) GetVolumeForImport(arg0 context.Context, arg1 string) (*storage.VolumeExternal, error)
- func (m *MockBackend) HasVolumes() bool
- func (m *MockBackend) ImportVolume(arg0 context.Context, arg1 *storage.VolumeConfig) (*storage.Volume, error)
- func (m *MockBackend) InvalidateNodeAccess()
- func (m *MockBackend) IsCredentialsFieldSet(arg0 context.Context) bool
- func (m *MockBackend) MarshalDriverConfig() ([]byte, error)
- func (m *MockBackend) Name() string
- func (m *MockBackend) Online() bool
- func (m *MockBackend) PublishVolume(arg0 context.Context, arg1 *storage.VolumeConfig, ...) error
- func (m *MockBackend) ReconcileNodeAccess(arg0 context.Context, arg1 []*models.Node, arg2 string) error
- func (m *MockBackend) ReconcileVolumeNodeAccess(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 []*models.Node) error
- func (m *MockBackend) RemoveCachedVolume(arg0 string)
- func (m *MockBackend) RemoveVolume(arg0 context.Context, arg1 *storage.VolumeConfig) error
- func (m *MockBackend) RenameVolume(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 string) error
- func (m *MockBackend) ResizeVolume(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 string) error
- func (m *MockBackend) RestoreSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) error
- func (m *MockBackend) SetBackendUUID(arg0 string)
- func (m *MockBackend) SetConfigRef(arg0 string)
- func (m *MockBackend) SetDriver(arg0 storage.Driver)
- func (m *MockBackend) SetName(arg0 string)
- func (m *MockBackend) SetNodeAccessUpToDate()
- func (m *MockBackend) SetOnline(arg0 bool)
- func (m *MockBackend) SetState(arg0 storage.BackendState)
- func (m *MockBackend) SetStorage(arg0 map[string]storage.Pool)
- func (m *MockBackend) SetUserState(arg0 storage.UserBackendState)
- func (m *MockBackend) SetVolumes(arg0 map[string]*storage.Volume)
- func (m *MockBackend) State() storage.BackendState
- func (m *MockBackend) StateReason() string
- func (m *MockBackend) Storage() map[string]storage.Pool
- func (m *MockBackend) Terminate(arg0 context.Context)
- func (m *MockBackend) UnpublishVolume(arg0 context.Context, arg1 *storage.VolumeConfig, ...) error
- func (m *MockBackend) UpdateMirror(arg0 context.Context, arg1, arg2 string) error
- func (m *MockBackend) UpdateVolume(arg0 context.Context, arg1 *storage.VolumeConfig, ...) (map[string]*storage.Volume, error)
- func (m *MockBackend) UserState() storage.UserBackendState
- func (m *MockBackend) Volumes() map[string]*storage.Volume
- type MockBackendMockRecorder
- func (mr *MockBackendMockRecorder) AddStoragePool(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) AddVolume(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *MockBackendMockRecorder) BackendUUID() *gomock.Call
- func (mr *MockBackendMockRecorder) CanEnablePublishEnforcement() *gomock.Call
- func (mr *MockBackendMockRecorder) CanGetState() *gomock.Call
- func (mr *MockBackendMockRecorder) CanMirror() *gomock.Call
- func (mr *MockBackendMockRecorder) CanSnapshot(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) CheckMirrorTransferState(arg0, arg1 any) *gomock.Call
- func (mr *MockBackendMockRecorder) CloneVolume(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *MockBackendMockRecorder) ConfigRef() *gomock.Call
- func (mr *MockBackendMockRecorder) ConstructExternal(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) ConstructPersistent(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) CreateSnapshot(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) DeleteSnapshot(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) Driver() *gomock.Call
- func (mr *MockBackendMockRecorder) EnablePublishEnforcement(arg0, arg1 any) *gomock.Call
- func (mr *MockBackendMockRecorder) GetBackendState(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) GetChapInfo(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) GetDebugTraceFlags(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) GetDriverName() *gomock.Call
- func (mr *MockBackendMockRecorder) GetMirrorTransferTime(arg0, arg1 any) *gomock.Call
- func (mr *MockBackendMockRecorder) GetPhysicalPoolNames(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) GetProtocol(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) GetSnapshot(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) GetSnapshots(arg0, arg1 any) *gomock.Call
- func (mr *MockBackendMockRecorder) GetUpdateType(arg0, arg1 any) *gomock.Call
- func (mr *MockBackendMockRecorder) GetVolumeForImport(arg0, arg1 any) *gomock.Call
- func (mr *MockBackendMockRecorder) HasVolumes() *gomock.Call
- func (mr *MockBackendMockRecorder) ImportVolume(arg0, arg1 any) *gomock.Call
- func (mr *MockBackendMockRecorder) InvalidateNodeAccess() *gomock.Call
- func (mr *MockBackendMockRecorder) IsCredentialsFieldSet(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) MarshalDriverConfig() *gomock.Call
- func (mr *MockBackendMockRecorder) Name() *gomock.Call
- func (mr *MockBackendMockRecorder) Online() *gomock.Call
- func (mr *MockBackendMockRecorder) PublishVolume(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) ReconcileNodeAccess(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) ReconcileVolumeNodeAccess(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) RemoveCachedVolume(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) RemoveVolume(arg0, arg1 any) *gomock.Call
- func (mr *MockBackendMockRecorder) RenameVolume(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) ResizeVolume(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) RestoreSnapshot(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) SetBackendUUID(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) SetConfigRef(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) SetDriver(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) SetName(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) SetNodeAccessUpToDate() *gomock.Call
- func (mr *MockBackendMockRecorder) SetOnline(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) SetState(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) SetStorage(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) SetUserState(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) SetVolumes(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) State() *gomock.Call
- func (mr *MockBackendMockRecorder) StateReason() *gomock.Call
- func (mr *MockBackendMockRecorder) Storage() *gomock.Call
- func (mr *MockBackendMockRecorder) Terminate(arg0 any) *gomock.Call
- func (mr *MockBackendMockRecorder) UnpublishVolume(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) UpdateMirror(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) UpdateVolume(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBackendMockRecorder) UserState() *gomock.Call
- func (mr *MockBackendMockRecorder) Volumes() *gomock.Call
- type MockDriver
- func (m *MockDriver) BackendName() string
- func (m *MockDriver) CanSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) error
- func (m *MockDriver) Create(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 storage.Pool, ...) error
- func (m *MockDriver) CreateClone(arg0 context.Context, arg1, arg2 *storage.VolumeConfig, arg3 storage.Pool) error
- func (m *MockDriver) CreateFollowup(arg0 context.Context, arg1 *storage.VolumeConfig) error
- func (m *MockDriver) CreatePrepare(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 storage.Pool)
- func (m *MockDriver) CreateSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) (*storage.Snapshot, error)
- func (m *MockDriver) DeleteSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) error
- func (m *MockDriver) Destroy(arg0 context.Context, arg1 *storage.VolumeConfig) error
- func (m *MockDriver) EXPECT() *MockDriverMockRecorder
- func (m *MockDriver) Get(arg0 context.Context, arg1 string) error
- func (m *MockDriver) GetCommonConfig(arg0 context.Context) *storagedrivers.CommonStorageDriverConfig
- func (m *MockDriver) GetConfig() storagedrivers.DriverConfig
- func (m *MockDriver) GetExternalConfig(arg0 context.Context) any
- func (m *MockDriver) GetInternalVolumeName(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 storage.Pool) string
- func (m *MockDriver) GetProtocol(arg0 context.Context) config.Protocol
- func (m *MockDriver) GetSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) (*storage.Snapshot, error)
- func (m *MockDriver) GetSnapshots(arg0 context.Context, arg1 *storage.VolumeConfig) ([]*storage.Snapshot, error)
- func (m *MockDriver) GetStorageBackendPhysicalPoolNames(arg0 context.Context) []string
- func (m *MockDriver) GetStorageBackendSpecs(arg0 context.Context, arg1 storage.Backend) error
- func (m *MockDriver) GetUpdateType(arg0 context.Context, arg1 storage.Driver) *roaring.Bitmap
- func (m *MockDriver) GetVolumeExternalWrappers(arg0 context.Context, arg1 chan *storage.VolumeExternalWrapper)
- func (m *MockDriver) GetVolumeForImport(arg0 context.Context, arg1 string) (*storage.VolumeExternal, error)
- func (m *MockDriver) Import(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 string) error
- func (m *MockDriver) Initialize(arg0 context.Context, arg1 config.DriverContext, arg2 string, ...) error
- func (m *MockDriver) Initialized() bool
- func (m *MockDriver) Name() string
- func (m *MockDriver) Publish(arg0 context.Context, arg1 *storage.VolumeConfig, ...) error
- func (m *MockDriver) ReconcileNodeAccess(arg0 context.Context, arg1 []*models.Node, arg2, arg3 string) error
- func (m *MockDriver) ReconcileVolumeNodeAccess(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 []*models.Node) error
- func (m *MockDriver) Rename(arg0 context.Context, arg1, arg2 string) error
- func (m *MockDriver) Resize(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 uint64) error
- func (m *MockDriver) RestoreSnapshot(arg0 context.Context, arg1 *storage.SnapshotConfig, arg2 *storage.VolumeConfig) error
- func (m *MockDriver) StoreConfig(arg0 context.Context, arg1 *storage.PersistentStorageBackendConfig)
- func (m *MockDriver) Terminate(arg0 context.Context, arg1 string)
- type MockDriverMockRecorder
- func (mr *MockDriverMockRecorder) BackendName() *gomock.Call
- func (mr *MockDriverMockRecorder) CanSnapshot(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDriverMockRecorder) Create(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockDriverMockRecorder) CreateClone(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockDriverMockRecorder) CreateFollowup(arg0, arg1 any) *gomock.Call
- func (mr *MockDriverMockRecorder) CreatePrepare(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDriverMockRecorder) CreateSnapshot(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDriverMockRecorder) DeleteSnapshot(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDriverMockRecorder) Destroy(arg0, arg1 any) *gomock.Call
- func (mr *MockDriverMockRecorder) Get(arg0, arg1 any) *gomock.Call
- func (mr *MockDriverMockRecorder) GetCommonConfig(arg0 any) *gomock.Call
- func (mr *MockDriverMockRecorder) GetConfig() *gomock.Call
- func (mr *MockDriverMockRecorder) GetExternalConfig(arg0 any) *gomock.Call
- func (mr *MockDriverMockRecorder) GetInternalVolumeName(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDriverMockRecorder) GetProtocol(arg0 any) *gomock.Call
- func (mr *MockDriverMockRecorder) GetSnapshot(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDriverMockRecorder) GetSnapshots(arg0, arg1 any) *gomock.Call
- func (mr *MockDriverMockRecorder) GetStorageBackendPhysicalPoolNames(arg0 any) *gomock.Call
- func (mr *MockDriverMockRecorder) GetStorageBackendSpecs(arg0, arg1 any) *gomock.Call
- func (mr *MockDriverMockRecorder) GetUpdateType(arg0, arg1 any) *gomock.Call
- func (mr *MockDriverMockRecorder) GetVolumeExternalWrappers(arg0, arg1 any) *gomock.Call
- func (mr *MockDriverMockRecorder) GetVolumeForImport(arg0, arg1 any) *gomock.Call
- func (mr *MockDriverMockRecorder) Import(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDriverMockRecorder) Initialize(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call
- func (mr *MockDriverMockRecorder) Initialized() *gomock.Call
- func (mr *MockDriverMockRecorder) Name() *gomock.Call
- func (mr *MockDriverMockRecorder) Publish(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDriverMockRecorder) ReconcileNodeAccess(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockDriverMockRecorder) ReconcileVolumeNodeAccess(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDriverMockRecorder) Rename(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDriverMockRecorder) Resize(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDriverMockRecorder) RestoreSnapshot(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDriverMockRecorder) StoreConfig(arg0, arg1 any) *gomock.Call
- func (mr *MockDriverMockRecorder) Terminate(arg0, arg1 any) *gomock.Call
- type MockPool
- func (m *MockPool) AddStorageClass(arg0 string)
- func (m *MockPool) Attributes() map[string]storageattribute.Offer
- func (m *MockPool) Backend() storage.Backend
- func (m *MockPool) ConstructExternal() *storage.PoolExternal
- func (m *MockPool) EXPECT() *MockPoolMockRecorder
- func (m *MockPool) GetLabelMapFromTemplate(arg0 context.Context, arg1 map[string]any) map[string]string
- func (m *MockPool) GetLabels(arg0 context.Context, arg1 string) map[string]string
- func (m *MockPool) GetLabelsJSON(arg0 context.Context, arg1 string, arg2 int) (string, error)
- func (m *MockPool) GetTemplatizedLabelsJSON(arg0 context.Context, arg1 string, arg2 int, arg3 map[string]any) (string, error)
- func (m *MockPool) InternalAttributes() map[string]string
- func (m *MockPool) Name() string
- func (m *MockPool) RemoveStorageClass(arg0 string) bool
- func (m *MockPool) SetAttributes(arg0 map[string]storageattribute.Offer)
- func (m *MockPool) SetBackend(arg0 storage.Backend)
- func (m *MockPool) SetInternalAttributes(arg0 map[string]string)
- func (m *MockPool) SetName(arg0 string)
- func (m *MockPool) SetStorageClasses(arg0 []string)
- func (m *MockPool) SetSupportedTopologies(arg0 []map[string]string)
- func (m *MockPool) StorageClasses() []string
- func (m *MockPool) SupportedTopologies() []map[string]string
- type MockPoolMockRecorder
- func (mr *MockPoolMockRecorder) AddStorageClass(arg0 any) *gomock.Call
- func (mr *MockPoolMockRecorder) Attributes() *gomock.Call
- func (mr *MockPoolMockRecorder) Backend() *gomock.Call
- func (mr *MockPoolMockRecorder) ConstructExternal() *gomock.Call
- func (mr *MockPoolMockRecorder) GetLabelMapFromTemplate(arg0, arg1 any) *gomock.Call
- func (mr *MockPoolMockRecorder) GetLabels(arg0, arg1 any) *gomock.Call
- func (mr *MockPoolMockRecorder) GetLabelsJSON(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockPoolMockRecorder) GetTemplatizedLabelsJSON(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockPoolMockRecorder) InternalAttributes() *gomock.Call
- func (mr *MockPoolMockRecorder) Name() *gomock.Call
- func (mr *MockPoolMockRecorder) RemoveStorageClass(arg0 any) *gomock.Call
- func (mr *MockPoolMockRecorder) SetAttributes(arg0 any) *gomock.Call
- func (mr *MockPoolMockRecorder) SetBackend(arg0 any) *gomock.Call
- func (mr *MockPoolMockRecorder) SetInternalAttributes(arg0 any) *gomock.Call
- func (mr *MockPoolMockRecorder) SetName(arg0 any) *gomock.Call
- func (mr *MockPoolMockRecorder) SetStorageClasses(arg0 any) *gomock.Call
- func (mr *MockPoolMockRecorder) SetSupportedTopologies(arg0 any) *gomock.Call
- func (mr *MockPoolMockRecorder) StorageClasses() *gomock.Call
- func (mr *MockPoolMockRecorder) SupportedTopologies() *gomock.Call
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) CanEnablePublishEnforcement ¶
func (m *MockBackend) CanEnablePublishEnforcement() bool
CanEnablePublishEnforcement mocks base method.
func (*MockBackend) CanGetState ¶
func (m *MockBackend) CanGetState() bool
CanGetState 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) CheckMirrorTransferState ¶
func (m *MockBackend) CheckMirrorTransferState(arg0 context.Context, arg1 string) (*time.Time, error)
CheckMirrorTransferState 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 ¶
EnablePublishEnforcement mocks base method.
func (*MockBackend) GetBackendState ¶
GetBackendState mocks base method.
func (*MockBackend) GetChapInfo ¶
func (m *MockBackend) GetChapInfo(arg0 context.Context, arg1, arg2 string) (*models.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) GetMirrorTransferTime ¶
GetMirrorTransferTime 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 ¶
GetUpdateType mocks base method.
func (*MockBackend) GetVolumeForImport ¶
func (m *MockBackend) GetVolumeForImport(arg0 context.Context, arg1 string) (*storage.VolumeExternal, error)
GetVolumeForImport 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) MarshalDriverConfig ¶
func (m *MockBackend) MarshalDriverConfig() ([]byte, error)
MarshalDriverConfig mocks base method.
func (*MockBackend) PublishVolume ¶
func (m *MockBackend) PublishVolume(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 *models.VolumePublishInfo) error
PublishVolume mocks base method.
func (*MockBackend) ReconcileNodeAccess ¶
func (m *MockBackend) ReconcileNodeAccess(arg0 context.Context, arg1 []*models.Node, arg2 string) error
ReconcileNodeAccess mocks base method.
func (*MockBackend) ReconcileVolumeNodeAccess ¶
func (m *MockBackend) ReconcileVolumeNodeAccess(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 []*models.Node) error
ReconcileVolumeNodeAccess 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) SetNodeAccessUpToDate ¶
func (m *MockBackend) SetNodeAccessUpToDate()
SetNodeAccessUpToDate 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) SetUserState ¶
func (m *MockBackend) SetUserState(arg0 storage.UserBackendState)
SetUserState 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) StateReason ¶
func (m *MockBackend) StateReason() string
StateReason 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 *models.VolumePublishInfo) error
UnpublishVolume mocks base method.
func (*MockBackend) UpdateMirror ¶
func (m *MockBackend) UpdateMirror(arg0 context.Context, arg1, arg2 string) error
UpdateMirror mocks base method.
func (*MockBackend) UpdateVolume ¶
func (m *MockBackend) UpdateVolume(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 *models.VolumeUpdateInfo) (map[string]*storage.Volume, error)
UpdateVolume mocks base method.
func (*MockBackend) UserState ¶
func (m *MockBackend) UserState() storage.UserBackendState
UserState 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 any) *gomock.Call
AddStoragePool indicates an expected call of AddStoragePool.
func (*MockBackendMockRecorder) AddVolume ¶
func (mr *MockBackendMockRecorder) AddVolume(arg0, arg1, arg2, arg3, arg4 any) *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) CanEnablePublishEnforcement ¶
func (mr *MockBackendMockRecorder) CanEnablePublishEnforcement() *gomock.Call
CanEnablePublishEnforcement indicates an expected call of CanEnablePublishEnforcement.
func (*MockBackendMockRecorder) CanGetState ¶
func (mr *MockBackendMockRecorder) CanGetState() *gomock.Call
CanGetState indicates an expected call of CanGetState.
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 any) *gomock.Call
CanSnapshot indicates an expected call of CanSnapshot.
func (*MockBackendMockRecorder) CheckMirrorTransferState ¶
func (mr *MockBackendMockRecorder) CheckMirrorTransferState(arg0, arg1 any) *gomock.Call
CheckMirrorTransferState indicates an expected call of CheckMirrorTransferState.
func (*MockBackendMockRecorder) CloneVolume ¶
func (mr *MockBackendMockRecorder) CloneVolume(arg0, arg1, arg2, arg3, arg4 any) *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 any) *gomock.Call
ConstructExternal indicates an expected call of ConstructExternal.
func (*MockBackendMockRecorder) ConstructPersistent ¶
func (mr *MockBackendMockRecorder) ConstructPersistent(arg0 any) *gomock.Call
ConstructPersistent indicates an expected call of ConstructPersistent.
func (*MockBackendMockRecorder) CreateSnapshot ¶
func (mr *MockBackendMockRecorder) CreateSnapshot(arg0, arg1, arg2 any) *gomock.Call
CreateSnapshot indicates an expected call of CreateSnapshot.
func (*MockBackendMockRecorder) DeleteSnapshot ¶
func (mr *MockBackendMockRecorder) DeleteSnapshot(arg0, arg1, arg2 any) *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 any) *gomock.Call
EnablePublishEnforcement indicates an expected call of EnablePublishEnforcement.
func (*MockBackendMockRecorder) GetBackendState ¶
func (mr *MockBackendMockRecorder) GetBackendState(arg0 any) *gomock.Call
GetBackendState indicates an expected call of GetBackendState.
func (*MockBackendMockRecorder) GetChapInfo ¶
func (mr *MockBackendMockRecorder) GetChapInfo(arg0, arg1, arg2 any) *gomock.Call
GetChapInfo indicates an expected call of GetChapInfo.
func (*MockBackendMockRecorder) GetDebugTraceFlags ¶
func (mr *MockBackendMockRecorder) GetDebugTraceFlags(arg0 any) *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) GetMirrorTransferTime ¶
func (mr *MockBackendMockRecorder) GetMirrorTransferTime(arg0, arg1 any) *gomock.Call
GetMirrorTransferTime indicates an expected call of GetMirrorTransferTime.
func (*MockBackendMockRecorder) GetPhysicalPoolNames ¶
func (mr *MockBackendMockRecorder) GetPhysicalPoolNames(arg0 any) *gomock.Call
GetPhysicalPoolNames indicates an expected call of GetPhysicalPoolNames.
func (*MockBackendMockRecorder) GetProtocol ¶
func (mr *MockBackendMockRecorder) GetProtocol(arg0 any) *gomock.Call
GetProtocol indicates an expected call of GetProtocol.
func (*MockBackendMockRecorder) GetSnapshot ¶
func (mr *MockBackendMockRecorder) GetSnapshot(arg0, arg1, arg2 any) *gomock.Call
GetSnapshot indicates an expected call of GetSnapshot.
func (*MockBackendMockRecorder) GetSnapshots ¶
func (mr *MockBackendMockRecorder) GetSnapshots(arg0, arg1 any) *gomock.Call
GetSnapshots indicates an expected call of GetSnapshots.
func (*MockBackendMockRecorder) GetUpdateType ¶
func (mr *MockBackendMockRecorder) GetUpdateType(arg0, arg1 any) *gomock.Call
GetUpdateType indicates an expected call of GetUpdateType.
func (*MockBackendMockRecorder) GetVolumeForImport ¶
func (mr *MockBackendMockRecorder) GetVolumeForImport(arg0, arg1 any) *gomock.Call
GetVolumeForImport indicates an expected call of GetVolumeForImport.
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 any) *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 any) *gomock.Call
IsCredentialsFieldSet indicates an expected call of IsCredentialsFieldSet.
func (*MockBackendMockRecorder) MarshalDriverConfig ¶
func (mr *MockBackendMockRecorder) MarshalDriverConfig() *gomock.Call
MarshalDriverConfig indicates an expected call of MarshalDriverConfig.
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 any) *gomock.Call
PublishVolume indicates an expected call of PublishVolume.
func (*MockBackendMockRecorder) ReconcileNodeAccess ¶
func (mr *MockBackendMockRecorder) ReconcileNodeAccess(arg0, arg1, arg2 any) *gomock.Call
ReconcileNodeAccess indicates an expected call of ReconcileNodeAccess.
func (*MockBackendMockRecorder) ReconcileVolumeNodeAccess ¶
func (mr *MockBackendMockRecorder) ReconcileVolumeNodeAccess(arg0, arg1, arg2 any) *gomock.Call
ReconcileVolumeNodeAccess indicates an expected call of ReconcileVolumeNodeAccess.
func (*MockBackendMockRecorder) RemoveCachedVolume ¶
func (mr *MockBackendMockRecorder) RemoveCachedVolume(arg0 any) *gomock.Call
RemoveCachedVolume indicates an expected call of RemoveCachedVolume.
func (*MockBackendMockRecorder) RemoveVolume ¶
func (mr *MockBackendMockRecorder) RemoveVolume(arg0, arg1 any) *gomock.Call
RemoveVolume indicates an expected call of RemoveVolume.
func (*MockBackendMockRecorder) RenameVolume ¶
func (mr *MockBackendMockRecorder) RenameVolume(arg0, arg1, arg2 any) *gomock.Call
RenameVolume indicates an expected call of RenameVolume.
func (*MockBackendMockRecorder) ResizeVolume ¶
func (mr *MockBackendMockRecorder) ResizeVolume(arg0, arg1, arg2 any) *gomock.Call
ResizeVolume indicates an expected call of ResizeVolume.
func (*MockBackendMockRecorder) RestoreSnapshot ¶
func (mr *MockBackendMockRecorder) RestoreSnapshot(arg0, arg1, arg2 any) *gomock.Call
RestoreSnapshot indicates an expected call of RestoreSnapshot.
func (*MockBackendMockRecorder) SetBackendUUID ¶
func (mr *MockBackendMockRecorder) SetBackendUUID(arg0 any) *gomock.Call
SetBackendUUID indicates an expected call of SetBackendUUID.
func (*MockBackendMockRecorder) SetConfigRef ¶
func (mr *MockBackendMockRecorder) SetConfigRef(arg0 any) *gomock.Call
SetConfigRef indicates an expected call of SetConfigRef.
func (*MockBackendMockRecorder) SetDriver ¶
func (mr *MockBackendMockRecorder) SetDriver(arg0 any) *gomock.Call
SetDriver indicates an expected call of SetDriver.
func (*MockBackendMockRecorder) SetName ¶
func (mr *MockBackendMockRecorder) SetName(arg0 any) *gomock.Call
SetName indicates an expected call of SetName.
func (*MockBackendMockRecorder) SetNodeAccessUpToDate ¶
func (mr *MockBackendMockRecorder) SetNodeAccessUpToDate() *gomock.Call
SetNodeAccessUpToDate indicates an expected call of SetNodeAccessUpToDate.
func (*MockBackendMockRecorder) SetOnline ¶
func (mr *MockBackendMockRecorder) SetOnline(arg0 any) *gomock.Call
SetOnline indicates an expected call of SetOnline.
func (*MockBackendMockRecorder) SetState ¶
func (mr *MockBackendMockRecorder) SetState(arg0 any) *gomock.Call
SetState indicates an expected call of SetState.
func (*MockBackendMockRecorder) SetStorage ¶
func (mr *MockBackendMockRecorder) SetStorage(arg0 any) *gomock.Call
SetStorage indicates an expected call of SetStorage.
func (*MockBackendMockRecorder) SetUserState ¶
func (mr *MockBackendMockRecorder) SetUserState(arg0 any) *gomock.Call
SetUserState indicates an expected call of SetUserState.
func (*MockBackendMockRecorder) SetVolumes ¶
func (mr *MockBackendMockRecorder) SetVolumes(arg0 any) *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) StateReason ¶
func (mr *MockBackendMockRecorder) StateReason() *gomock.Call
StateReason indicates an expected call of StateReason.
func (*MockBackendMockRecorder) Storage ¶
func (mr *MockBackendMockRecorder) Storage() *gomock.Call
Storage indicates an expected call of Storage.
func (*MockBackendMockRecorder) Terminate ¶
func (mr *MockBackendMockRecorder) Terminate(arg0 any) *gomock.Call
Terminate indicates an expected call of Terminate.
func (*MockBackendMockRecorder) UnpublishVolume ¶
func (mr *MockBackendMockRecorder) UnpublishVolume(arg0, arg1, arg2 any) *gomock.Call
UnpublishVolume indicates an expected call of UnpublishVolume.
func (*MockBackendMockRecorder) UpdateMirror ¶
func (mr *MockBackendMockRecorder) UpdateMirror(arg0, arg1, arg2 any) *gomock.Call
UpdateMirror indicates an expected call of UpdateMirror.
func (*MockBackendMockRecorder) UpdateVolume ¶
func (mr *MockBackendMockRecorder) UpdateVolume(arg0, arg1, arg2 any) *gomock.Call
UpdateVolume indicates an expected call of UpdateVolume.
func (*MockBackendMockRecorder) UserState ¶
func (mr *MockBackendMockRecorder) UserState() *gomock.Call
UserState indicates an expected call of UserState.
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 ¶
func (m *MockDriver) Create(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 storage.Pool, arg3 map[string]storageattribute.Request) error
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, arg2 storage.Pool)
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 ¶
func (m *MockDriver) GetCommonConfig(arg0 context.Context) *storagedrivers.CommonStorageDriverConfig
GetCommonConfig mocks base method.
func (*MockDriver) GetConfig ¶
func (m *MockDriver) GetConfig() storagedrivers.DriverConfig
GetConfig mocks base method.
func (*MockDriver) GetExternalConfig ¶
func (m *MockDriver) GetExternalConfig(arg0 context.Context) any
GetExternalConfig mocks base method.
func (*MockDriver) GetInternalVolumeName ¶
func (m *MockDriver) GetInternalVolumeName(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 storage.Pool) 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 ¶
GetStorageBackendSpecs mocks base method.
func (*MockDriver) GetUpdateType ¶
GetUpdateType mocks base method.
func (*MockDriver) GetVolumeExternalWrappers ¶
func (m *MockDriver) GetVolumeExternalWrappers(arg0 context.Context, arg1 chan *storage.VolumeExternalWrapper)
GetVolumeExternalWrappers mocks base method.
func (*MockDriver) GetVolumeForImport ¶
func (m *MockDriver) GetVolumeForImport(arg0 context.Context, arg1 string) (*storage.VolumeExternal, error)
GetVolumeForImport 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) Publish ¶
func (m *MockDriver) Publish(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 *models.VolumePublishInfo) error
Publish mocks base method.
func (*MockDriver) ReconcileNodeAccess ¶
func (m *MockDriver) ReconcileNodeAccess(arg0 context.Context, arg1 []*models.Node, arg2, arg3 string) error
ReconcileNodeAccess mocks base method.
func (*MockDriver) ReconcileVolumeNodeAccess ¶
func (m *MockDriver) ReconcileVolumeNodeAccess(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 []*models.Node) error
ReconcileVolumeNodeAccess 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.
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 any) *gomock.Call
CanSnapshot indicates an expected call of CanSnapshot.
func (*MockDriverMockRecorder) Create ¶
func (mr *MockDriverMockRecorder) Create(arg0, arg1, arg2, arg3 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockDriverMockRecorder) CreateClone ¶
func (mr *MockDriverMockRecorder) CreateClone(arg0, arg1, arg2, arg3 any) *gomock.Call
CreateClone indicates an expected call of CreateClone.
func (*MockDriverMockRecorder) CreateFollowup ¶
func (mr *MockDriverMockRecorder) CreateFollowup(arg0, arg1 any) *gomock.Call
CreateFollowup indicates an expected call of CreateFollowup.
func (*MockDriverMockRecorder) CreatePrepare ¶
func (mr *MockDriverMockRecorder) CreatePrepare(arg0, arg1, arg2 any) *gomock.Call
CreatePrepare indicates an expected call of CreatePrepare.
func (*MockDriverMockRecorder) CreateSnapshot ¶
func (mr *MockDriverMockRecorder) CreateSnapshot(arg0, arg1, arg2 any) *gomock.Call
CreateSnapshot indicates an expected call of CreateSnapshot.
func (*MockDriverMockRecorder) DeleteSnapshot ¶
func (mr *MockDriverMockRecorder) DeleteSnapshot(arg0, arg1, arg2 any) *gomock.Call
DeleteSnapshot indicates an expected call of DeleteSnapshot.
func (*MockDriverMockRecorder) Destroy ¶
func (mr *MockDriverMockRecorder) Destroy(arg0, arg1 any) *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockDriverMockRecorder) Get ¶
func (mr *MockDriverMockRecorder) Get(arg0, arg1 any) *gomock.Call
Get indicates an expected call of Get.
func (*MockDriverMockRecorder) GetCommonConfig ¶
func (mr *MockDriverMockRecorder) GetCommonConfig(arg0 any) *gomock.Call
GetCommonConfig indicates an expected call of GetCommonConfig.
func (*MockDriverMockRecorder) GetConfig ¶
func (mr *MockDriverMockRecorder) GetConfig() *gomock.Call
GetConfig indicates an expected call of GetConfig.
func (*MockDriverMockRecorder) GetExternalConfig ¶
func (mr *MockDriverMockRecorder) GetExternalConfig(arg0 any) *gomock.Call
GetExternalConfig indicates an expected call of GetExternalConfig.
func (*MockDriverMockRecorder) GetInternalVolumeName ¶
func (mr *MockDriverMockRecorder) GetInternalVolumeName(arg0, arg1, arg2 any) *gomock.Call
GetInternalVolumeName indicates an expected call of GetInternalVolumeName.
func (*MockDriverMockRecorder) GetProtocol ¶
func (mr *MockDriverMockRecorder) GetProtocol(arg0 any) *gomock.Call
GetProtocol indicates an expected call of GetProtocol.
func (*MockDriverMockRecorder) GetSnapshot ¶
func (mr *MockDriverMockRecorder) GetSnapshot(arg0, arg1, arg2 any) *gomock.Call
GetSnapshot indicates an expected call of GetSnapshot.
func (*MockDriverMockRecorder) GetSnapshots ¶
func (mr *MockDriverMockRecorder) GetSnapshots(arg0, arg1 any) *gomock.Call
GetSnapshots indicates an expected call of GetSnapshots.
func (*MockDriverMockRecorder) GetStorageBackendPhysicalPoolNames ¶
func (mr *MockDriverMockRecorder) GetStorageBackendPhysicalPoolNames(arg0 any) *gomock.Call
GetStorageBackendPhysicalPoolNames indicates an expected call of GetStorageBackendPhysicalPoolNames.
func (*MockDriverMockRecorder) GetStorageBackendSpecs ¶
func (mr *MockDriverMockRecorder) GetStorageBackendSpecs(arg0, arg1 any) *gomock.Call
GetStorageBackendSpecs indicates an expected call of GetStorageBackendSpecs.
func (*MockDriverMockRecorder) GetUpdateType ¶
func (mr *MockDriverMockRecorder) GetUpdateType(arg0, arg1 any) *gomock.Call
GetUpdateType indicates an expected call of GetUpdateType.
func (*MockDriverMockRecorder) GetVolumeExternalWrappers ¶
func (mr *MockDriverMockRecorder) GetVolumeExternalWrappers(arg0, arg1 any) *gomock.Call
GetVolumeExternalWrappers indicates an expected call of GetVolumeExternalWrappers.
func (*MockDriverMockRecorder) GetVolumeForImport ¶
func (mr *MockDriverMockRecorder) GetVolumeForImport(arg0, arg1 any) *gomock.Call
GetVolumeForImport indicates an expected call of GetVolumeForImport.
func (*MockDriverMockRecorder) Import ¶
func (mr *MockDriverMockRecorder) Import(arg0, arg1, arg2 any) *gomock.Call
Import indicates an expected call of Import.
func (*MockDriverMockRecorder) Initialize ¶
func (mr *MockDriverMockRecorder) Initialize(arg0, arg1, arg2, arg3, arg4, arg5 any) *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 any) *gomock.Call
Publish indicates an expected call of Publish.
func (*MockDriverMockRecorder) ReconcileNodeAccess ¶
func (mr *MockDriverMockRecorder) ReconcileNodeAccess(arg0, arg1, arg2, arg3 any) *gomock.Call
ReconcileNodeAccess indicates an expected call of ReconcileNodeAccess.
func (*MockDriverMockRecorder) ReconcileVolumeNodeAccess ¶
func (mr *MockDriverMockRecorder) ReconcileVolumeNodeAccess(arg0, arg1, arg2 any) *gomock.Call
ReconcileVolumeNodeAccess indicates an expected call of ReconcileVolumeNodeAccess.
func (*MockDriverMockRecorder) Rename ¶
func (mr *MockDriverMockRecorder) Rename(arg0, arg1, arg2 any) *gomock.Call
Rename indicates an expected call of Rename.
func (*MockDriverMockRecorder) Resize ¶
func (mr *MockDriverMockRecorder) Resize(arg0, arg1, arg2 any) *gomock.Call
Resize indicates an expected call of Resize.
func (*MockDriverMockRecorder) RestoreSnapshot ¶
func (mr *MockDriverMockRecorder) RestoreSnapshot(arg0, arg1, arg2 any) *gomock.Call
RestoreSnapshot indicates an expected call of RestoreSnapshot.
func (*MockDriverMockRecorder) StoreConfig ¶
func (mr *MockDriverMockRecorder) StoreConfig(arg0, arg1 any) *gomock.Call
StoreConfig indicates an expected call of StoreConfig.
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 ¶
AddStorageClass mocks base method.
func (*MockPool) Attributes ¶
func (m *MockPool) Attributes() map[string]storageattribute.Offer
Attributes 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) GetLabelMapFromTemplate ¶
func (m *MockPool) GetLabelMapFromTemplate(arg0 context.Context, arg1 map[string]any) map[string]string
GetLabelMapFromTemplate mocks base method.
func (*MockPool) GetLabelsJSON ¶
GetLabelsJSON mocks base method.
func (*MockPool) GetTemplatizedLabelsJSON ¶
func (m *MockPool) GetTemplatizedLabelsJSON(arg0 context.Context, arg1 string, arg2 int, arg3 map[string]any) (string, error)
GetTemplatizedLabelsJSON mocks base method.
func (*MockPool) InternalAttributes ¶
InternalAttributes mocks base method.
func (*MockPool) RemoveStorageClass ¶
RemoveStorageClass mocks base method.
func (*MockPool) SetAttributes ¶
func (m *MockPool) SetAttributes(arg0 map[string]storageattribute.Offer)
SetAttributes mocks base method.
func (*MockPool) SetBackend ¶
SetBackend mocks base method.
func (*MockPool) SetInternalAttributes ¶
SetInternalAttributes mocks base method.
func (*MockPool) SetStorageClasses ¶
SetStorageClasses mocks base method.
func (*MockPool) SetSupportedTopologies ¶
SetSupportedTopologies mocks base method.
func (*MockPool) StorageClasses ¶
StorageClasses mocks base method.
func (*MockPool) SupportedTopologies ¶
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 any) *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) GetLabelMapFromTemplate ¶
func (mr *MockPoolMockRecorder) GetLabelMapFromTemplate(arg0, arg1 any) *gomock.Call
GetLabelMapFromTemplate indicates an expected call of GetLabelMapFromTemplate.
func (*MockPoolMockRecorder) GetLabels ¶
func (mr *MockPoolMockRecorder) GetLabels(arg0, arg1 any) *gomock.Call
GetLabels indicates an expected call of GetLabels.
func (*MockPoolMockRecorder) GetLabelsJSON ¶
func (mr *MockPoolMockRecorder) GetLabelsJSON(arg0, arg1, arg2 any) *gomock.Call
GetLabelsJSON indicates an expected call of GetLabelsJSON.
func (*MockPoolMockRecorder) GetTemplatizedLabelsJSON ¶
func (mr *MockPoolMockRecorder) GetTemplatizedLabelsJSON(arg0, arg1, arg2, arg3 any) *gomock.Call
GetTemplatizedLabelsJSON indicates an expected call of GetTemplatizedLabelsJSON.
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 any) *gomock.Call
RemoveStorageClass indicates an expected call of RemoveStorageClass.
func (*MockPoolMockRecorder) SetAttributes ¶
func (mr *MockPoolMockRecorder) SetAttributes(arg0 any) *gomock.Call
SetAttributes indicates an expected call of SetAttributes.
func (*MockPoolMockRecorder) SetBackend ¶
func (mr *MockPoolMockRecorder) SetBackend(arg0 any) *gomock.Call
SetBackend indicates an expected call of SetBackend.
func (*MockPoolMockRecorder) SetInternalAttributes ¶
func (mr *MockPoolMockRecorder) SetInternalAttributes(arg0 any) *gomock.Call
SetInternalAttributes indicates an expected call of SetInternalAttributes.
func (*MockPoolMockRecorder) SetName ¶
func (mr *MockPoolMockRecorder) SetName(arg0 any) *gomock.Call
SetName indicates an expected call of SetName.
func (*MockPoolMockRecorder) SetStorageClasses ¶
func (mr *MockPoolMockRecorder) SetStorageClasses(arg0 any) *gomock.Call
SetStorageClasses indicates an expected call of SetStorageClasses.
func (*MockPoolMockRecorder) SetSupportedTopologies ¶
func (mr *MockPoolMockRecorder) SetSupportedTopologies(arg0 any) *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.