Documentation ¶
Index ¶
- type BackupProvider
- func (_m *BackupProvider) Abort(ctx context.Context, remoteName string, request client.BackupAbortRequest) error
- func (_m *BackupProvider) Create(ctx context.Context, remoteName string, request client.BackupCreate) (string, error)
- func (_m *BackupProvider) DeleteAll(ctx context.Context, remoteName string, filter client.BackupDeleteOpts) error
- func (_m *BackupProvider) GetAll(ctx context.Context, remoteName string, rscName string, snapName string) (*client.BackupList, error)
- func (_m *BackupProvider) Info(ctx context.Context, remoteName string, request client.BackupInfoRequest) (*client.BackupInfo, error)
- func (_m *BackupProvider) Restore(ctx context.Context, remoteName string, request client.BackupRestoreRequest) error
- func (_m *BackupProvider) Ship(ctx context.Context, remoteName string, request client.BackupShipRequest) error
- type ControllerProvider
- func (_m *ControllerProvider) CreateSOSReport(ctx context.Context, opts ...*client.ListOpts) error
- func (_m *ControllerProvider) DeleteErrorReports(ctx context.Context, del client.ErrorReportDelete) error
- func (_m *ControllerProvider) DeleteExternalFile(ctx context.Context, name string) error
- func (_m *ControllerProvider) DeleteProp(ctx context.Context, prop string) error
- func (_m *ControllerProvider) DownloadSOSReport(ctx context.Context, opts ...*client.ListOpts) error
- func (_m *ControllerProvider) GetConfig(ctx context.Context, opts ...*client.ListOpts) (client.ControllerConfig, error)
- func (_m *ControllerProvider) GetErrorReport(ctx context.Context, id string, opts ...*client.ListOpts) (client.ErrorReport, error)
- func (_m *ControllerProvider) GetErrorReports(ctx context.Context, opts ...*client.ListOpts) ([]client.ErrorReport, error)
- func (_m *ControllerProvider) GetErrorReportsSince(ctx context.Context, since time.Time, opts ...*client.ListOpts) ([]client.ErrorReport, error)
- func (_m *ControllerProvider) GetExternalFile(ctx context.Context, name string) (client.ExternalFile, error)
- func (_m *ControllerProvider) GetExternalFiles(ctx context.Context, opts ...*client.ListOpts) ([]client.ExternalFile, error)
- func (_m *ControllerProvider) GetProps(ctx context.Context, opts ...*client.ListOpts) (client.ControllerProps, error)
- func (_m *ControllerProvider) GetPropsInfos(ctx context.Context, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *ControllerProvider) GetPropsInfosAll(ctx context.Context, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *ControllerProvider) GetSatelliteConfig(ctx context.Context, node string) (client.SatelliteConfig, error)
- func (_m *ControllerProvider) GetVersion(ctx context.Context, opts ...*client.ListOpts) (client.ControllerVersion, error)
- func (_m *ControllerProvider) Modify(ctx context.Context, props client.GenericPropsModify) error
- func (_m *ControllerProvider) ModifyExternalFile(ctx context.Context, name string, file client.ExternalFile) error
- func (_m *ControllerProvider) ModifySatelliteConfig(ctx context.Context, node string, cfg client.SatelliteConfig) error
- type EncryptionProvider
- type EventProvider
- type KeyValueStoreProvider
- func (_m *KeyValueStoreProvider) CreateOrModify(ctx context.Context, kv string, modify client.GenericPropsModify) error
- func (_m *KeyValueStoreProvider) Delete(ctx context.Context, kv string) error
- func (_m *KeyValueStoreProvider) Get(ctx context.Context, kv string) (*client.KV, error)
- func (_m *KeyValueStoreProvider) List(ctx context.Context) ([]client.KV, error)
- type LeveledLogger
- type Logger
- type NewBackupProviderT
- type NewControllerProviderT
- type NewEncryptionProviderT
- type NewEventProviderT
- type NewKeyValueStoreProviderT
- type NewLeveledLoggerT
- type NewLoggerT
- type NewNodeProviderT
- type NewOneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayerT
- type NewOneOfDrbdVolumeDefinitionT
- type NewOneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolumeT
- type NewOptionT
- type NewRemoteProviderT
- type NewResourceDefinitionProviderT
- type NewResourceGroupProviderT
- type NewResourceProviderT
- type NewStoragePoolDefinitionProviderT
- type NewVendorProviderT
- type NodeProvider
- func (_m *NodeProvider) Create(ctx context.Context, node client.Node) error
- func (_m *NodeProvider) CreateDevicePool(ctx context.Context, nodeName string, psc client.PhysicalStorageCreate) error
- func (_m *NodeProvider) CreateEbsNode(ctx context.Context, name string, remoteName string) error
- func (_m *NodeProvider) CreateNetInterface(ctx context.Context, nodeName string, nif client.NetInterface) error
- func (_m *NodeProvider) CreateStoragePool(ctx context.Context, nodeName string, sp client.StoragePool) error
- func (_m *NodeProvider) Delete(ctx context.Context, nodeName string) error
- func (_m *NodeProvider) DeleteNetinterface(ctx context.Context, nodeName string, nifName string) error
- func (_m *NodeProvider) DeleteStoragePool(ctx context.Context, nodeName string, spName string) error
- func (_m *NodeProvider) Evacuate(ctx context.Context, nodeName string) error
- func (_m *NodeProvider) Evict(ctx context.Context, nodeName string) error
- func (_m *NodeProvider) Get(ctx context.Context, nodeName string, opts ...*client.ListOpts) (client.Node, error)
- func (_m *NodeProvider) GetAll(ctx context.Context, opts ...*client.ListOpts) ([]client.Node, error)
- func (_m *NodeProvider) GetNetInterface(ctx context.Context, nodeName string, nifName string, opts ...*client.ListOpts) (client.NetInterface, error)
- func (_m *NodeProvider) GetNetInterfaces(ctx context.Context, nodeName string, opts ...*client.ListOpts) ([]client.NetInterface, error)
- func (_m *NodeProvider) GetPhysicalStorage(ctx context.Context, nodeName string) ([]client.PhysicalStorageNode, error)
- func (_m *NodeProvider) GetPhysicalStorageView(ctx context.Context, opts ...*client.ListOpts) ([]client.PhysicalStorageViewItem, error)
- func (_m *NodeProvider) GetPropsInfos(ctx context.Context, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *NodeProvider) GetStoragePool(ctx context.Context, nodeName string, spName string, opts ...*client.ListOpts) (client.StoragePool, error)
- func (_m *NodeProvider) GetStoragePoolPropsInfos(ctx context.Context, nodeName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *NodeProvider) GetStoragePoolView(ctx context.Context, opts ...*client.ListOpts) ([]client.StoragePool, error)
- func (_m *NodeProvider) GetStoragePools(ctx context.Context, nodeName string, opts ...*client.ListOpts) ([]client.StoragePool, error)
- func (_m *NodeProvider) Lost(ctx context.Context, nodeName string) error
- func (_m *NodeProvider) Modify(ctx context.Context, nodeName string, props client.NodeModify) error
- func (_m *NodeProvider) ModifyNetInterface(ctx context.Context, nodeName string, nifName string, nif client.NetInterface) error
- func (_m *NodeProvider) ModifyStoragePool(ctx context.Context, nodeName string, spName string, ...) error
- func (_m *NodeProvider) Reconnect(ctx context.Context, nodeName string) error
- func (_m *NodeProvider) Restore(ctx context.Context, nodeName string, restore client.NodeRestore) error
- type OneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayer
- type OneOfDrbdVolumeDefinition
- type OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolume
- type OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolume
- type Option
- type RemoteProvider
- func (_m *RemoteProvider) CreateEbs(ctx context.Context, create client.EbsRemote) error
- func (_m *RemoteProvider) CreateLinstor(ctx context.Context, create client.LinstorRemote) error
- func (_m *RemoteProvider) CreateS3(ctx context.Context, create client.S3Remote) error
- func (_m *RemoteProvider) Delete(ctx context.Context, remoteName string) error
- func (_m *RemoteProvider) GetAll(ctx context.Context, opts ...*client.ListOpts) (client.RemoteList, error)
- func (_m *RemoteProvider) GetAllEbs(ctx context.Context, opts ...*client.ListOpts) ([]client.EbsRemote, error)
- func (_m *RemoteProvider) GetAllLinstor(ctx context.Context, opts ...*client.ListOpts) ([]client.LinstorRemote, error)
- func (_m *RemoteProvider) GetAllS3(ctx context.Context, opts ...*client.ListOpts) ([]client.S3Remote, error)
- func (_m *RemoteProvider) ModifyEbs(ctx context.Context, remoteName string, modify client.EbsRemote) error
- func (_m *RemoteProvider) ModifyLinstor(ctx context.Context, remoteName string, modify client.LinstorRemote) error
- func (_m *RemoteProvider) ModifyS3(ctx context.Context, remoteName string, modify client.S3Remote) error
- type ResourceDefinitionProvider
- func (_m *ResourceDefinitionProvider) AttachExternalFile(ctx context.Context, resDefName string, filePath string) error
- func (_m *ResourceDefinitionProvider) Clone(ctx context.Context, srcResDef string, ...) (client.ResourceDefinitionCloneStarted, error)
- func (_m *ResourceDefinitionProvider) CloneStatus(ctx context.Context, srcResDef string, targetResDef string) (client.ResourceDefinitionCloneStatus, error)
- func (_m *ResourceDefinitionProvider) Create(ctx context.Context, resDef client.ResourceDefinitionCreate) error
- func (_m *ResourceDefinitionProvider) CreateVolumeDefinition(ctx context.Context, resDefName string, volDef client.VolumeDefinitionCreate) error
- func (_m *ResourceDefinitionProvider) Delete(ctx context.Context, resDefName string) error
- func (_m *ResourceDefinitionProvider) DeleteVolumeDefinition(ctx context.Context, resDefName string, volNr int) error
- func (_m *ResourceDefinitionProvider) DetachExternalFile(ctx context.Context, resDefName string, filePath string) error
- func (_m *ResourceDefinitionProvider) Get(ctx context.Context, resDefName string, opts ...*client.ListOpts) (client.ResourceDefinition, error)
- func (_m *ResourceDefinitionProvider) GetAll(ctx context.Context, request client.RDGetAllRequest) ([]client.ResourceDefinitionWithVolumeDefinition, error)
- func (_m *ResourceDefinitionProvider) GetDRBDProxyPropsInfos(ctx context.Context, resDefName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *ResourceDefinitionProvider) GetPropsInfos(ctx context.Context, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *ResourceDefinitionProvider) GetVolumeDefinition(ctx context.Context, resDefName string, volNr int, opts ...*client.ListOpts) (client.VolumeDefinition, error)
- func (_m *ResourceDefinitionProvider) GetVolumeDefinitions(ctx context.Context, resDefName string, opts ...*client.ListOpts) ([]client.VolumeDefinition, error)
- func (_m *ResourceDefinitionProvider) Modify(ctx context.Context, resDefName string, props client.GenericPropsModify) error
- func (_m *ResourceDefinitionProvider) ModifyVolumeDefinition(ctx context.Context, resDefName string, volNr int, ...) error
- func (_m *ResourceDefinitionProvider) SyncStatus(ctx context.Context, resDef string) (client.ResourceDefinitionSyncStatus, error)
- type ResourceGroupProvider
- func (_m *ResourceGroupProvider) Adjust(ctx context.Context, resGrpName string, adjust client.ResourceGroupAdjust) error
- func (_m *ResourceGroupProvider) AdjustAll(ctx context.Context, adjust client.ResourceGroupAdjust) error
- func (_m *ResourceGroupProvider) Create(ctx context.Context, resGrp client.ResourceGroup) error
- func (_m *ResourceGroupProvider) CreateVolumeGroup(ctx context.Context, resGrpName string, volGrp client.VolumeGroup) error
- func (_m *ResourceGroupProvider) Delete(ctx context.Context, resGrpName string) error
- func (_m *ResourceGroupProvider) DeleteVolumeGroup(ctx context.Context, resGrpName string, volNr int) error
- func (_m *ResourceGroupProvider) Get(ctx context.Context, resGrpName string, opts ...*client.ListOpts) (client.ResourceGroup, error)
- func (_m *ResourceGroupProvider) GetAll(ctx context.Context, opts ...*client.ListOpts) ([]client.ResourceGroup, error)
- func (_m *ResourceGroupProvider) GetPropsInfos(ctx context.Context, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *ResourceGroupProvider) GetVolumeGroup(ctx context.Context, resGrpName string, volNr int, opts ...*client.ListOpts) (client.VolumeGroup, error)
- func (_m *ResourceGroupProvider) GetVolumeGroupPropsInfos(ctx context.Context, resGrpName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *ResourceGroupProvider) GetVolumeGroups(ctx context.Context, resGrpName string, opts ...*client.ListOpts) ([]client.VolumeGroup, error)
- func (_m *ResourceGroupProvider) Modify(ctx context.Context, resGrpName string, props client.ResourceGroupModify) error
- func (_m *ResourceGroupProvider) ModifyVolumeGroup(ctx context.Context, resGrpName string, volNr int, ...) error
- func (_m *ResourceGroupProvider) Spawn(ctx context.Context, resGrpName string, resGrpSpwn client.ResourceGroupSpawn) error
- type ResourceProvider
- func (_m *ResourceProvider) Activate(ctx context.Context, resName string, nodeName string) error
- func (_m *ResourceProvider) Autoplace(ctx context.Context, resName string, apr client.AutoPlaceRequest) error
- func (_m *ResourceProvider) Create(ctx context.Context, res client.ResourceCreate) error
- func (_m *ResourceProvider) CreateSnapshot(ctx context.Context, snapshot client.Snapshot) error
- func (_m *ResourceProvider) Deactivate(ctx context.Context, resName string, nodeName string) error
- func (_m *ResourceProvider) Delete(ctx context.Context, resName string, nodeName string) error
- func (_m *ResourceProvider) DeleteSnapshot(ctx context.Context, resName string, snapName string, nodes ...string) error
- func (_m *ResourceProvider) DisableDRBDProxy(ctx context.Context, resName string, nodeAName string, nodeBName string) error
- func (_m *ResourceProvider) Diskful(ctx context.Context, resName string, nodeName string, storagePoolName string, ...) error
- func (_m *ResourceProvider) Diskless(ctx context.Context, resName string, nodeName string, disklessPoolName string) error
- func (_m *ResourceProvider) EnableDRBDProxy(ctx context.Context, resName string, nodeAName string, nodeBName string) error
- func (_m *ResourceProvider) EnableSnapshotShipping(ctx context.Context, resName string, ship client.SnapshotShipping) error
- func (_m *ResourceProvider) Get(ctx context.Context, resName string, nodeName string, opts ...*client.ListOpts) (client.Resource, error)
- func (_m *ResourceProvider) GetAll(ctx context.Context, resName string, opts ...*client.ListOpts) ([]client.Resource, error)
- func (_m *ResourceProvider) GetConnectionPropsInfos(ctx context.Context, resName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *ResourceProvider) GetConnections(ctx context.Context, resName string, nodeAName string, nodeBName string, ...) ([]client.ResourceConnection, error)
- func (_m *ResourceProvider) GetPropsInfos(ctx context.Context, resName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *ResourceProvider) GetResourceView(ctx context.Context, opts ...*client.ListOpts) ([]client.ResourceWithVolumes, error)
- func (_m *ResourceProvider) GetSnapshot(ctx context.Context, resName string, snapName string, opts ...*client.ListOpts) (client.Snapshot, error)
- func (_m *ResourceProvider) GetSnapshotShippings(ctx context.Context, opts ...*client.ListOpts) ([]client.SnapshotShippingStatus, error)
- func (_m *ResourceProvider) GetSnapshotView(ctx context.Context, opts ...*client.ListOpts) ([]client.Snapshot, error)
- func (_m *ResourceProvider) GetSnapshots(ctx context.Context, resName string, opts ...*client.ListOpts) ([]client.Snapshot, error)
- func (_m *ResourceProvider) GetVolume(ctx context.Context, resName string, nodeName string, volNr int, ...) (client.Volume, error)
- func (_m *ResourceProvider) GetVolumeDefinitionPropsInfos(ctx context.Context, resName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *ResourceProvider) GetVolumePropsInfos(ctx context.Context, resName string, nodeName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *ResourceProvider) GetVolumes(ctx context.Context, resName string, nodeName string, opts ...*client.ListOpts) ([]client.Volume, error)
- func (_m *ResourceProvider) MakeAvailable(ctx context.Context, resName string, nodeName string, ...) error
- func (_m *ResourceProvider) Migrate(ctx context.Context, resName string, fromNodeName string, toNodeName string, ...) error
- func (_m *ResourceProvider) Modify(ctx context.Context, resName string, nodeName string, ...) error
- func (_m *ResourceProvider) ModifyConnection(ctx context.Context, resName string, nodeAName string, nodeBName string, ...) error
- func (_m *ResourceProvider) ModifyDRBDProxy(ctx context.Context, resName string, props client.DrbdProxyModify) error
- func (_m *ResourceProvider) ModifyVolume(ctx context.Context, resName string, nodeName string, volNr int, ...) error
- func (_m *ResourceProvider) QueryMaxVolumeSize(ctx context.Context, filter client.AutoSelectFilter) (client.MaxVolumeSizes, error)
- func (_m *ResourceProvider) RestoreSnapshot(ctx context.Context, origResName string, snapName string, ...) error
- func (_m *ResourceProvider) RestoreVolumeDefinitionSnapshot(ctx context.Context, origResName string, snapName string, ...) error
- func (_m *ResourceProvider) RollbackSnapshot(ctx context.Context, resName string, snapName string) error
- type StoragePoolDefinitionProvider
- func (_m *StoragePoolDefinitionProvider) Create(ctx context.Context, spd client.StoragePoolDefinition) error
- func (_m *StoragePoolDefinitionProvider) Delete(ctx context.Context, spdName string) error
- func (_m *StoragePoolDefinitionProvider) Get(ctx context.Context, spdName string, opts ...*client.ListOpts) (client.StoragePoolDefinition, error)
- func (_m *StoragePoolDefinitionProvider) GetAll(ctx context.Context, opts ...*client.ListOpts) ([]client.StoragePoolDefinition, error)
- func (_m *StoragePoolDefinitionProvider) GetPropsInfos(ctx context.Context, opts ...*client.ListOpts) ([]client.PropsInfo, error)
- func (_m *StoragePoolDefinitionProvider) Modify(ctx context.Context, spdName string, props client.StoragePoolDefinitionModify) error
- type VendorProvider
- func (_m *VendorProvider) CreateExosEnclosure(ctx context.Context, enclosure client.ExosEnclosure) error
- func (_m *VendorProvider) DeleteExosEnclosure(ctx context.Context, name string) error
- func (_m *VendorProvider) GetExosConnectionMap(ctx context.Context) (client.ExosConnectionMap, error)
- func (_m *VendorProvider) GetExosDefaults(ctx context.Context) (client.ExosDefaults, error)
- func (_m *VendorProvider) GetExosEnclosures(ctx context.Context, noCache bool) ([]client.ExosEnclosure, error)
- func (_m *VendorProvider) GetExosEvents(ctx context.Context, name string, count int32) ([]client.ExosEnclosureEvent, error)
- func (_m *VendorProvider) ModifyExosDefaults(ctx context.Context, defaults client.ExosDefaultsModify) error
- func (_m *VendorProvider) ModifyExosEnclosure(ctx context.Context, name string, enclosure client.ExosEnclosure) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupProvider ¶ added in v0.16.0
BackupProvider is an autogenerated mock type for the BackupProvider type
func NewBackupProvider ¶ added in v0.20.0
func NewBackupProvider(t NewBackupProviderT) *BackupProvider
NewBackupProvider creates a new instance of BackupProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BackupProvider) Abort ¶ added in v0.16.0
func (_m *BackupProvider) Abort(ctx context.Context, remoteName string, request client.BackupAbortRequest) error
Abort provides a mock function with given fields: ctx, remoteName, request
func (*BackupProvider) Create ¶ added in v0.16.0
func (_m *BackupProvider) Create(ctx context.Context, remoteName string, request client.BackupCreate) (string, error)
Create provides a mock function with given fields: ctx, remoteName, request
func (*BackupProvider) DeleteAll ¶ added in v0.16.0
func (_m *BackupProvider) DeleteAll(ctx context.Context, remoteName string, filter client.BackupDeleteOpts) error
DeleteAll provides a mock function with given fields: ctx, remoteName, filter
func (*BackupProvider) GetAll ¶ added in v0.16.0
func (_m *BackupProvider) GetAll(ctx context.Context, remoteName string, rscName string, snapName string) (*client.BackupList, error)
GetAll provides a mock function with given fields: ctx, remoteName, rscName, snapName
func (*BackupProvider) Info ¶ added in v0.16.0
func (_m *BackupProvider) Info(ctx context.Context, remoteName string, request client.BackupInfoRequest) (*client.BackupInfo, error)
Info provides a mock function with given fields: ctx, remoteName, request
func (*BackupProvider) Restore ¶ added in v0.16.0
func (_m *BackupProvider) Restore(ctx context.Context, remoteName string, request client.BackupRestoreRequest) error
Restore provides a mock function with given fields: ctx, remoteName, request
func (*BackupProvider) Ship ¶ added in v0.16.0
func (_m *BackupProvider) Ship(ctx context.Context, remoteName string, request client.BackupShipRequest) error
Ship provides a mock function with given fields: ctx, remoteName, request
type ControllerProvider ¶
ControllerProvider is an autogenerated mock type for the ControllerProvider type
func NewControllerProvider ¶ added in v0.20.0
func NewControllerProvider(t NewControllerProviderT) *ControllerProvider
NewControllerProvider creates a new instance of ControllerProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ControllerProvider) CreateSOSReport ¶
CreateSOSReport provides a mock function with given fields: ctx, opts
func (*ControllerProvider) DeleteErrorReports ¶
func (_m *ControllerProvider) DeleteErrorReports(ctx context.Context, del client.ErrorReportDelete) error
DeleteErrorReports provides a mock function with given fields: ctx, del
func (*ControllerProvider) DeleteExternalFile ¶
func (_m *ControllerProvider) DeleteExternalFile(ctx context.Context, name string) error
DeleteExternalFile provides a mock function with given fields: ctx, name
func (*ControllerProvider) DeleteProp ¶
func (_m *ControllerProvider) DeleteProp(ctx context.Context, prop string) error
DeleteProp provides a mock function with given fields: ctx, prop
func (*ControllerProvider) DownloadSOSReport ¶
func (_m *ControllerProvider) DownloadSOSReport(ctx context.Context, opts ...*client.ListOpts) error
DownloadSOSReport provides a mock function with given fields: ctx, opts
func (*ControllerProvider) GetConfig ¶
func (_m *ControllerProvider) GetConfig(ctx context.Context, opts ...*client.ListOpts) (client.ControllerConfig, error)
GetConfig provides a mock function with given fields: ctx, opts
func (*ControllerProvider) GetErrorReport ¶
func (_m *ControllerProvider) GetErrorReport(ctx context.Context, id string, opts ...*client.ListOpts) (client.ErrorReport, error)
GetErrorReport provides a mock function with given fields: ctx, id, opts
func (*ControllerProvider) GetErrorReports ¶
func (_m *ControllerProvider) GetErrorReports(ctx context.Context, opts ...*client.ListOpts) ([]client.ErrorReport, error)
GetErrorReports provides a mock function with given fields: ctx, opts
func (*ControllerProvider) GetErrorReportsSince ¶
func (_m *ControllerProvider) GetErrorReportsSince(ctx context.Context, since time.Time, opts ...*client.ListOpts) ([]client.ErrorReport, error)
GetErrorReportsSince provides a mock function with given fields: ctx, since, opts
func (*ControllerProvider) GetExternalFile ¶
func (_m *ControllerProvider) GetExternalFile(ctx context.Context, name string) (client.ExternalFile, error)
GetExternalFile provides a mock function with given fields: ctx, name
func (*ControllerProvider) GetExternalFiles ¶
func (_m *ControllerProvider) GetExternalFiles(ctx context.Context, opts ...*client.ListOpts) ([]client.ExternalFile, error)
GetExternalFiles provides a mock function with given fields: ctx, opts
func (*ControllerProvider) GetProps ¶
func (_m *ControllerProvider) GetProps(ctx context.Context, opts ...*client.ListOpts) (client.ControllerProps, error)
GetProps provides a mock function with given fields: ctx, opts
func (*ControllerProvider) GetPropsInfos ¶
func (_m *ControllerProvider) GetPropsInfos(ctx context.Context, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetPropsInfos provides a mock function with given fields: ctx, opts
func (*ControllerProvider) GetPropsInfosAll ¶
func (_m *ControllerProvider) GetPropsInfosAll(ctx context.Context, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetPropsInfosAll provides a mock function with given fields: ctx, opts
func (*ControllerProvider) GetSatelliteConfig ¶
func (_m *ControllerProvider) GetSatelliteConfig(ctx context.Context, node string) (client.SatelliteConfig, error)
GetSatelliteConfig provides a mock function with given fields: ctx, node
func (*ControllerProvider) GetVersion ¶
func (_m *ControllerProvider) GetVersion(ctx context.Context, opts ...*client.ListOpts) (client.ControllerVersion, error)
GetVersion provides a mock function with given fields: ctx, opts
func (*ControllerProvider) Modify ¶
func (_m *ControllerProvider) Modify(ctx context.Context, props client.GenericPropsModify) error
Modify provides a mock function with given fields: ctx, props
func (*ControllerProvider) ModifyExternalFile ¶
func (_m *ControllerProvider) ModifyExternalFile(ctx context.Context, name string, file client.ExternalFile) error
ModifyExternalFile provides a mock function with given fields: ctx, name, file
func (*ControllerProvider) ModifySatelliteConfig ¶
func (_m *ControllerProvider) ModifySatelliteConfig(ctx context.Context, node string, cfg client.SatelliteConfig) error
ModifySatelliteConfig provides a mock function with given fields: ctx, node, cfg
type EncryptionProvider ¶
EncryptionProvider is an autogenerated mock type for the EncryptionProvider type
func NewEncryptionProvider ¶ added in v0.20.0
func NewEncryptionProvider(t NewEncryptionProviderT) *EncryptionProvider
NewEncryptionProvider creates a new instance of EncryptionProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EncryptionProvider) Create ¶
func (_m *EncryptionProvider) Create(ctx context.Context, passphrase client.Passphrase) error
Create provides a mock function with given fields: ctx, passphrase
func (*EncryptionProvider) Enter ¶
func (_m *EncryptionProvider) Enter(ctx context.Context, password string) error
Enter provides a mock function with given fields: ctx, password
func (*EncryptionProvider) Modify ¶
func (_m *EncryptionProvider) Modify(ctx context.Context, passphrase client.Passphrase) error
Modify provides a mock function with given fields: ctx, passphrase
type EventProvider ¶
EventProvider is an autogenerated mock type for the EventProvider type
func NewEventProvider ¶ added in v0.20.0
func NewEventProvider(t NewEventProviderT) *EventProvider
NewEventProvider creates a new instance of EventProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EventProvider) DRBDPromotion ¶
func (_m *EventProvider) DRBDPromotion(ctx context.Context, lastEventId string) (*client.DRBDMayPromoteStream, error)
DRBDPromotion provides a mock function with given fields: ctx, lastEventId
type KeyValueStoreProvider ¶ added in v0.18.0
KeyValueStoreProvider is an autogenerated mock type for the KeyValueStoreProvider type
func NewKeyValueStoreProvider ¶ added in v0.20.0
func NewKeyValueStoreProvider(t NewKeyValueStoreProviderT) *KeyValueStoreProvider
NewKeyValueStoreProvider creates a new instance of KeyValueStoreProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*KeyValueStoreProvider) CreateOrModify ¶ added in v0.18.0
func (_m *KeyValueStoreProvider) CreateOrModify(ctx context.Context, kv string, modify client.GenericPropsModify) error
CreateOrModify provides a mock function with given fields: ctx, kv, modify
func (*KeyValueStoreProvider) Delete ¶ added in v0.18.0
func (_m *KeyValueStoreProvider) Delete(ctx context.Context, kv string) error
Delete provides a mock function with given fields: ctx, kv
type LeveledLogger ¶
LeveledLogger is an autogenerated mock type for the LeveledLogger type
func NewLeveledLogger ¶ added in v0.20.0
func NewLeveledLogger(t NewLeveledLoggerT) *LeveledLogger
NewLeveledLogger creates a new instance of LeveledLogger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*LeveledLogger) Debugf ¶
func (_m *LeveledLogger) Debugf(_a0 string, _a1 ...interface{})
Debugf provides a mock function with given fields: _a0, _a1
func (*LeveledLogger) Errorf ¶
func (_m *LeveledLogger) Errorf(_a0 string, _a1 ...interface{})
Errorf provides a mock function with given fields: _a0, _a1
func (*LeveledLogger) Infof ¶
func (_m *LeveledLogger) Infof(_a0 string, _a1 ...interface{})
Infof provides a mock function with given fields: _a0, _a1
func (*LeveledLogger) Warnf ¶
func (_m *LeveledLogger) Warnf(_a0 string, _a1 ...interface{})
Warnf provides a mock function with given fields: _a0, _a1
type Logger ¶
Logger is an autogenerated mock type for the Logger type
func NewLogger ¶ added in v0.20.0
func NewLogger(t NewLoggerT) *Logger
NewLogger creates a new instance of Logger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type NewBackupProviderT ¶ added in v0.20.0
type NewControllerProviderT ¶ added in v0.20.0
type NewEncryptionProviderT ¶ added in v0.20.0
type NewEventProviderT ¶ added in v0.20.0
type NewKeyValueStoreProviderT ¶ added in v0.20.0
type NewLeveledLoggerT ¶ added in v0.20.0
type NewLoggerT ¶ added in v0.20.0
type NewNodeProviderT ¶ added in v0.20.0
type NewOneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayerT ¶ added in v0.20.0
type NewOneOfDrbdVolumeDefinitionT ¶ added in v0.20.0
type NewOneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolumeT ¶ added in v0.20.0
type NewOptionT ¶ added in v0.20.0
type NewRemoteProviderT ¶ added in v0.20.0
type NewResourceDefinitionProviderT ¶ added in v0.20.0
type NewResourceGroupProviderT ¶ added in v0.20.0
type NewResourceProviderT ¶ added in v0.20.0
type NewStoragePoolDefinitionProviderT ¶ added in v0.20.0
type NewVendorProviderT ¶ added in v0.20.0
type NodeProvider ¶
NodeProvider is an autogenerated mock type for the NodeProvider type
func NewNodeProvider ¶ added in v0.20.0
func NewNodeProvider(t NewNodeProviderT) *NodeProvider
NewNodeProvider creates a new instance of NodeProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NodeProvider) CreateDevicePool ¶
func (_m *NodeProvider) CreateDevicePool(ctx context.Context, nodeName string, psc client.PhysicalStorageCreate) error
CreateDevicePool provides a mock function with given fields: ctx, nodeName, psc
func (*NodeProvider) CreateEbsNode ¶ added in v0.22.1
CreateEbsNode provides a mock function with given fields: ctx, name, remoteName
func (*NodeProvider) CreateNetInterface ¶
func (_m *NodeProvider) CreateNetInterface(ctx context.Context, nodeName string, nif client.NetInterface) error
CreateNetInterface provides a mock function with given fields: ctx, nodeName, nif
func (*NodeProvider) CreateStoragePool ¶
func (_m *NodeProvider) CreateStoragePool(ctx context.Context, nodeName string, sp client.StoragePool) error
CreateStoragePool provides a mock function with given fields: ctx, nodeName, sp
func (*NodeProvider) Delete ¶
func (_m *NodeProvider) Delete(ctx context.Context, nodeName string) error
Delete provides a mock function with given fields: ctx, nodeName
func (*NodeProvider) DeleteNetinterface ¶
func (_m *NodeProvider) DeleteNetinterface(ctx context.Context, nodeName string, nifName string) error
DeleteNetinterface provides a mock function with given fields: ctx, nodeName, nifName
func (*NodeProvider) DeleteStoragePool ¶
func (_m *NodeProvider) DeleteStoragePool(ctx context.Context, nodeName string, spName string) error
DeleteStoragePool provides a mock function with given fields: ctx, nodeName, spName
func (*NodeProvider) Evacuate ¶ added in v0.18.0
func (_m *NodeProvider) Evacuate(ctx context.Context, nodeName string) error
Evacuate provides a mock function with given fields: ctx, nodeName
func (*NodeProvider) Evict ¶ added in v0.16.0
func (_m *NodeProvider) Evict(ctx context.Context, nodeName string) error
Evict provides a mock function with given fields: ctx, nodeName
func (*NodeProvider) Get ¶
func (_m *NodeProvider) Get(ctx context.Context, nodeName string, opts ...*client.ListOpts) (client.Node, error)
Get provides a mock function with given fields: ctx, nodeName, opts
func (*NodeProvider) GetAll ¶
func (_m *NodeProvider) GetAll(ctx context.Context, opts ...*client.ListOpts) ([]client.Node, error)
GetAll provides a mock function with given fields: ctx, opts
func (*NodeProvider) GetNetInterface ¶
func (_m *NodeProvider) GetNetInterface(ctx context.Context, nodeName string, nifName string, opts ...*client.ListOpts) (client.NetInterface, error)
GetNetInterface provides a mock function with given fields: ctx, nodeName, nifName, opts
func (*NodeProvider) GetNetInterfaces ¶
func (_m *NodeProvider) GetNetInterfaces(ctx context.Context, nodeName string, opts ...*client.ListOpts) ([]client.NetInterface, error)
GetNetInterfaces provides a mock function with given fields: ctx, nodeName, opts
func (*NodeProvider) GetPhysicalStorage ¶
func (_m *NodeProvider) GetPhysicalStorage(ctx context.Context, nodeName string) ([]client.PhysicalStorageNode, error)
GetPhysicalStorage provides a mock function with given fields: ctx, nodeName
func (*NodeProvider) GetPhysicalStorageView ¶ added in v0.22.1
func (_m *NodeProvider) GetPhysicalStorageView(ctx context.Context, opts ...*client.ListOpts) ([]client.PhysicalStorageViewItem, error)
GetPhysicalStorageView provides a mock function with given fields: ctx, opts
func (*NodeProvider) GetPropsInfos ¶
func (_m *NodeProvider) GetPropsInfos(ctx context.Context, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetPropsInfos provides a mock function with given fields: ctx, opts
func (*NodeProvider) GetStoragePool ¶
func (_m *NodeProvider) GetStoragePool(ctx context.Context, nodeName string, spName string, opts ...*client.ListOpts) (client.StoragePool, error)
GetStoragePool provides a mock function with given fields: ctx, nodeName, spName, opts
func (*NodeProvider) GetStoragePoolPropsInfos ¶
func (_m *NodeProvider) GetStoragePoolPropsInfos(ctx context.Context, nodeName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetStoragePoolPropsInfos provides a mock function with given fields: ctx, nodeName, opts
func (*NodeProvider) GetStoragePoolView ¶
func (_m *NodeProvider) GetStoragePoolView(ctx context.Context, opts ...*client.ListOpts) ([]client.StoragePool, error)
GetStoragePoolView provides a mock function with given fields: ctx, opts
func (*NodeProvider) GetStoragePools ¶
func (_m *NodeProvider) GetStoragePools(ctx context.Context, nodeName string, opts ...*client.ListOpts) ([]client.StoragePool, error)
GetStoragePools provides a mock function with given fields: ctx, nodeName, opts
func (*NodeProvider) Lost ¶
func (_m *NodeProvider) Lost(ctx context.Context, nodeName string) error
Lost provides a mock function with given fields: ctx, nodeName
func (*NodeProvider) Modify ¶
func (_m *NodeProvider) Modify(ctx context.Context, nodeName string, props client.NodeModify) error
Modify provides a mock function with given fields: ctx, nodeName, props
func (*NodeProvider) ModifyNetInterface ¶
func (_m *NodeProvider) ModifyNetInterface(ctx context.Context, nodeName string, nifName string, nif client.NetInterface) error
ModifyNetInterface provides a mock function with given fields: ctx, nodeName, nifName, nif
func (*NodeProvider) ModifyStoragePool ¶
func (_m *NodeProvider) ModifyStoragePool(ctx context.Context, nodeName string, spName string, genericProps client.GenericPropsModify) error
ModifyStoragePool provides a mock function with given fields: ctx, nodeName, spName, genericProps
func (*NodeProvider) Reconnect ¶
func (_m *NodeProvider) Reconnect(ctx context.Context, nodeName string) error
Reconnect provides a mock function with given fields: ctx, nodeName
func (*NodeProvider) Restore ¶
func (_m *NodeProvider) Restore(ctx context.Context, nodeName string, restore client.NodeRestore) error
Restore provides a mock function with given fields: ctx, nodeName, restore
type OneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayer ¶
OneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayer is an autogenerated mock type for the OneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayer type
func NewOneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayer ¶ added in v0.20.0
func NewOneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayer(t NewOneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayerT) *OneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayer
NewOneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayer creates a new instance of OneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type OneOfDrbdVolumeDefinition ¶
OneOfDrbdVolumeDefinition is an autogenerated mock type for the OneOfDrbdVolumeDefinition type
func NewOneOfDrbdVolumeDefinition ¶ added in v0.20.0
func NewOneOfDrbdVolumeDefinition(t NewOneOfDrbdVolumeDefinitionT) *OneOfDrbdVolumeDefinition
NewOneOfDrbdVolumeDefinition creates a new instance of OneOfDrbdVolumeDefinition. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolume ¶
type OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolume struct {
mock.Mock
}
OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolume is an autogenerated mock type for the OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolume type
type OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolume ¶ added in v0.16.0
type OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolume struct {
mock.Mock
}
OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolume is an autogenerated mock type for the OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolume type
func NewOneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolume ¶ added in v0.20.0
func NewOneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolume(t NewOneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolumeT) *OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolume
NewOneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolume creates a new instance of OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolume. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type Option ¶
Option is an autogenerated mock type for the Option type
func NewOption ¶ added in v0.20.0
func NewOption(t NewOptionT) *Option
NewOption creates a new instance of Option. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type RemoteProvider ¶ added in v0.16.0
RemoteProvider is an autogenerated mock type for the RemoteProvider type
func NewRemoteProvider ¶ added in v0.20.0
func NewRemoteProvider(t NewRemoteProviderT) *RemoteProvider
NewRemoteProvider creates a new instance of RemoteProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RemoteProvider) CreateEbs ¶ added in v0.22.1
CreateEbs provides a mock function with given fields: ctx, create
func (*RemoteProvider) CreateLinstor ¶ added in v0.16.0
func (_m *RemoteProvider) CreateLinstor(ctx context.Context, create client.LinstorRemote) error
CreateLinstor provides a mock function with given fields: ctx, create
func (*RemoteProvider) CreateS3 ¶ added in v0.16.0
CreateS3 provides a mock function with given fields: ctx, create
func (*RemoteProvider) Delete ¶ added in v0.16.0
func (_m *RemoteProvider) Delete(ctx context.Context, remoteName string) error
Delete provides a mock function with given fields: ctx, remoteName
func (*RemoteProvider) GetAll ¶ added in v0.16.0
func (_m *RemoteProvider) GetAll(ctx context.Context, opts ...*client.ListOpts) (client.RemoteList, error)
GetAll provides a mock function with given fields: ctx, opts
func (*RemoteProvider) GetAllEbs ¶ added in v0.22.1
func (_m *RemoteProvider) GetAllEbs(ctx context.Context, opts ...*client.ListOpts) ([]client.EbsRemote, error)
GetAllEbs provides a mock function with given fields: ctx, opts
func (*RemoteProvider) GetAllLinstor ¶ added in v0.16.0
func (_m *RemoteProvider) GetAllLinstor(ctx context.Context, opts ...*client.ListOpts) ([]client.LinstorRemote, error)
GetAllLinstor provides a mock function with given fields: ctx, opts
func (*RemoteProvider) GetAllS3 ¶ added in v0.16.0
func (_m *RemoteProvider) GetAllS3(ctx context.Context, opts ...*client.ListOpts) ([]client.S3Remote, error)
GetAllS3 provides a mock function with given fields: ctx, opts
func (*RemoteProvider) ModifyEbs ¶ added in v0.22.1
func (_m *RemoteProvider) ModifyEbs(ctx context.Context, remoteName string, modify client.EbsRemote) error
ModifyEbs provides a mock function with given fields: ctx, remoteName, modify
func (*RemoteProvider) ModifyLinstor ¶ added in v0.16.0
func (_m *RemoteProvider) ModifyLinstor(ctx context.Context, remoteName string, modify client.LinstorRemote) error
ModifyLinstor provides a mock function with given fields: ctx, remoteName, modify
type ResourceDefinitionProvider ¶
ResourceDefinitionProvider is an autogenerated mock type for the ResourceDefinitionProvider type
func NewResourceDefinitionProvider ¶ added in v0.20.0
func NewResourceDefinitionProvider(t NewResourceDefinitionProviderT) *ResourceDefinitionProvider
NewResourceDefinitionProvider creates a new instance of ResourceDefinitionProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ResourceDefinitionProvider) AttachExternalFile ¶ added in v0.16.0
func (_m *ResourceDefinitionProvider) AttachExternalFile(ctx context.Context, resDefName string, filePath string) error
AttachExternalFile provides a mock function with given fields: ctx, resDefName, filePath
func (*ResourceDefinitionProvider) Clone ¶ added in v0.16.0
func (_m *ResourceDefinitionProvider) Clone(ctx context.Context, srcResDef string, request client.ResourceDefinitionCloneRequest) (client.ResourceDefinitionCloneStarted, error)
Clone provides a mock function with given fields: ctx, srcResDef, request
func (*ResourceDefinitionProvider) CloneStatus ¶ added in v0.16.0
func (_m *ResourceDefinitionProvider) CloneStatus(ctx context.Context, srcResDef string, targetResDef string) (client.ResourceDefinitionCloneStatus, error)
CloneStatus provides a mock function with given fields: ctx, srcResDef, targetResDef
func (*ResourceDefinitionProvider) Create ¶
func (_m *ResourceDefinitionProvider) Create(ctx context.Context, resDef client.ResourceDefinitionCreate) error
Create provides a mock function with given fields: ctx, resDef
func (*ResourceDefinitionProvider) CreateVolumeDefinition ¶
func (_m *ResourceDefinitionProvider) CreateVolumeDefinition(ctx context.Context, resDefName string, volDef client.VolumeDefinitionCreate) error
CreateVolumeDefinition provides a mock function with given fields: ctx, resDefName, volDef
func (*ResourceDefinitionProvider) Delete ¶
func (_m *ResourceDefinitionProvider) Delete(ctx context.Context, resDefName string) error
Delete provides a mock function with given fields: ctx, resDefName
func (*ResourceDefinitionProvider) DeleteVolumeDefinition ¶
func (_m *ResourceDefinitionProvider) DeleteVolumeDefinition(ctx context.Context, resDefName string, volNr int) error
DeleteVolumeDefinition provides a mock function with given fields: ctx, resDefName, volNr
func (*ResourceDefinitionProvider) DetachExternalFile ¶ added in v0.16.0
func (_m *ResourceDefinitionProvider) DetachExternalFile(ctx context.Context, resDefName string, filePath string) error
DetachExternalFile provides a mock function with given fields: ctx, resDefName, filePath
func (*ResourceDefinitionProvider) Get ¶
func (_m *ResourceDefinitionProvider) Get(ctx context.Context, resDefName string, opts ...*client.ListOpts) (client.ResourceDefinition, error)
Get provides a mock function with given fields: ctx, resDefName, opts
func (*ResourceDefinitionProvider) GetAll ¶
func (_m *ResourceDefinitionProvider) GetAll(ctx context.Context, request client.RDGetAllRequest) ([]client.ResourceDefinitionWithVolumeDefinition, error)
GetAll provides a mock function with given fields: ctx, request
func (*ResourceDefinitionProvider) GetDRBDProxyPropsInfos ¶
func (_m *ResourceDefinitionProvider) GetDRBDProxyPropsInfos(ctx context.Context, resDefName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetDRBDProxyPropsInfos provides a mock function with given fields: ctx, resDefName, opts
func (*ResourceDefinitionProvider) GetPropsInfos ¶
func (_m *ResourceDefinitionProvider) GetPropsInfos(ctx context.Context, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetPropsInfos provides a mock function with given fields: ctx, opts
func (*ResourceDefinitionProvider) GetVolumeDefinition ¶
func (_m *ResourceDefinitionProvider) GetVolumeDefinition(ctx context.Context, resDefName string, volNr int, opts ...*client.ListOpts) (client.VolumeDefinition, error)
GetVolumeDefinition provides a mock function with given fields: ctx, resDefName, volNr, opts
func (*ResourceDefinitionProvider) GetVolumeDefinitions ¶
func (_m *ResourceDefinitionProvider) GetVolumeDefinitions(ctx context.Context, resDefName string, opts ...*client.ListOpts) ([]client.VolumeDefinition, error)
GetVolumeDefinitions provides a mock function with given fields: ctx, resDefName, opts
func (*ResourceDefinitionProvider) Modify ¶
func (_m *ResourceDefinitionProvider) Modify(ctx context.Context, resDefName string, props client.GenericPropsModify) error
Modify provides a mock function with given fields: ctx, resDefName, props
func (*ResourceDefinitionProvider) ModifyVolumeDefinition ¶
func (_m *ResourceDefinitionProvider) ModifyVolumeDefinition(ctx context.Context, resDefName string, volNr int, props client.VolumeDefinitionModify) error
ModifyVolumeDefinition provides a mock function with given fields: ctx, resDefName, volNr, props
func (*ResourceDefinitionProvider) SyncStatus ¶ added in v0.20.0
func (_m *ResourceDefinitionProvider) SyncStatus(ctx context.Context, resDef string) (client.ResourceDefinitionSyncStatus, error)
SyncStatus provides a mock function with given fields: ctx, resDef
type ResourceGroupProvider ¶
ResourceGroupProvider is an autogenerated mock type for the ResourceGroupProvider type
func NewResourceGroupProvider ¶ added in v0.20.0
func NewResourceGroupProvider(t NewResourceGroupProviderT) *ResourceGroupProvider
NewResourceGroupProvider creates a new instance of ResourceGroupProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ResourceGroupProvider) Adjust ¶ added in v0.16.0
func (_m *ResourceGroupProvider) Adjust(ctx context.Context, resGrpName string, adjust client.ResourceGroupAdjust) error
Adjust provides a mock function with given fields: ctx, resGrpName, adjust
func (*ResourceGroupProvider) AdjustAll ¶ added in v0.16.0
func (_m *ResourceGroupProvider) AdjustAll(ctx context.Context, adjust client.ResourceGroupAdjust) error
AdjustAll provides a mock function with given fields: ctx, adjust
func (*ResourceGroupProvider) Create ¶
func (_m *ResourceGroupProvider) Create(ctx context.Context, resGrp client.ResourceGroup) error
Create provides a mock function with given fields: ctx, resGrp
func (*ResourceGroupProvider) CreateVolumeGroup ¶
func (_m *ResourceGroupProvider) CreateVolumeGroup(ctx context.Context, resGrpName string, volGrp client.VolumeGroup) error
CreateVolumeGroup provides a mock function with given fields: ctx, resGrpName, volGrp
func (*ResourceGroupProvider) Delete ¶
func (_m *ResourceGroupProvider) Delete(ctx context.Context, resGrpName string) error
Delete provides a mock function with given fields: ctx, resGrpName
func (*ResourceGroupProvider) DeleteVolumeGroup ¶
func (_m *ResourceGroupProvider) DeleteVolumeGroup(ctx context.Context, resGrpName string, volNr int) error
DeleteVolumeGroup provides a mock function with given fields: ctx, resGrpName, volNr
func (*ResourceGroupProvider) Get ¶
func (_m *ResourceGroupProvider) Get(ctx context.Context, resGrpName string, opts ...*client.ListOpts) (client.ResourceGroup, error)
Get provides a mock function with given fields: ctx, resGrpName, opts
func (*ResourceGroupProvider) GetAll ¶
func (_m *ResourceGroupProvider) GetAll(ctx context.Context, opts ...*client.ListOpts) ([]client.ResourceGroup, error)
GetAll provides a mock function with given fields: ctx, opts
func (*ResourceGroupProvider) GetPropsInfos ¶
func (_m *ResourceGroupProvider) GetPropsInfos(ctx context.Context, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetPropsInfos provides a mock function with given fields: ctx, opts
func (*ResourceGroupProvider) GetVolumeGroup ¶
func (_m *ResourceGroupProvider) GetVolumeGroup(ctx context.Context, resGrpName string, volNr int, opts ...*client.ListOpts) (client.VolumeGroup, error)
GetVolumeGroup provides a mock function with given fields: ctx, resGrpName, volNr, opts
func (*ResourceGroupProvider) GetVolumeGroupPropsInfos ¶
func (_m *ResourceGroupProvider) GetVolumeGroupPropsInfos(ctx context.Context, resGrpName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetVolumeGroupPropsInfos provides a mock function with given fields: ctx, resGrpName, opts
func (*ResourceGroupProvider) GetVolumeGroups ¶
func (_m *ResourceGroupProvider) GetVolumeGroups(ctx context.Context, resGrpName string, opts ...*client.ListOpts) ([]client.VolumeGroup, error)
GetVolumeGroups provides a mock function with given fields: ctx, resGrpName, opts
func (*ResourceGroupProvider) Modify ¶
func (_m *ResourceGroupProvider) Modify(ctx context.Context, resGrpName string, props client.ResourceGroupModify) error
Modify provides a mock function with given fields: ctx, resGrpName, props
func (*ResourceGroupProvider) ModifyVolumeGroup ¶
func (_m *ResourceGroupProvider) ModifyVolumeGroup(ctx context.Context, resGrpName string, volNr int, props client.VolumeGroupModify) error
ModifyVolumeGroup provides a mock function with given fields: ctx, resGrpName, volNr, props
func (*ResourceGroupProvider) Spawn ¶
func (_m *ResourceGroupProvider) Spawn(ctx context.Context, resGrpName string, resGrpSpwn client.ResourceGroupSpawn) error
Spawn provides a mock function with given fields: ctx, resGrpName, resGrpSpwn
type ResourceProvider ¶
ResourceProvider is an autogenerated mock type for the ResourceProvider type
func NewResourceProvider ¶ added in v0.20.0
func NewResourceProvider(t NewResourceProviderT) *ResourceProvider
NewResourceProvider creates a new instance of ResourceProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ResourceProvider) Activate ¶
Activate provides a mock function with given fields: ctx, resName, nodeName
func (*ResourceProvider) Autoplace ¶
func (_m *ResourceProvider) Autoplace(ctx context.Context, resName string, apr client.AutoPlaceRequest) error
Autoplace provides a mock function with given fields: ctx, resName, apr
func (*ResourceProvider) Create ¶
func (_m *ResourceProvider) Create(ctx context.Context, res client.ResourceCreate) error
Create provides a mock function with given fields: ctx, res
func (*ResourceProvider) CreateSnapshot ¶
CreateSnapshot provides a mock function with given fields: ctx, snapshot
func (*ResourceProvider) Deactivate ¶
Deactivate provides a mock function with given fields: ctx, resName, nodeName
func (*ResourceProvider) Delete ¶
Delete provides a mock function with given fields: ctx, resName, nodeName
func (*ResourceProvider) DeleteSnapshot ¶
func (_m *ResourceProvider) DeleteSnapshot(ctx context.Context, resName string, snapName string, nodes ...string) error
DeleteSnapshot provides a mock function with given fields: ctx, resName, snapName, nodes
func (*ResourceProvider) DisableDRBDProxy ¶
func (_m *ResourceProvider) DisableDRBDProxy(ctx context.Context, resName string, nodeAName string, nodeBName string) error
DisableDRBDProxy provides a mock function with given fields: ctx, resName, nodeAName, nodeBName
func (*ResourceProvider) Diskful ¶
func (_m *ResourceProvider) Diskful(ctx context.Context, resName string, nodeName string, storagePoolName string, props *client.ToggleDiskDiskfulProps) error
Diskful provides a mock function with given fields: ctx, resName, nodeName, storagePoolName, props
func (*ResourceProvider) Diskless ¶
func (_m *ResourceProvider) Diskless(ctx context.Context, resName string, nodeName string, disklessPoolName string) error
Diskless provides a mock function with given fields: ctx, resName, nodeName, disklessPoolName
func (*ResourceProvider) EnableDRBDProxy ¶
func (_m *ResourceProvider) EnableDRBDProxy(ctx context.Context, resName string, nodeAName string, nodeBName string) error
EnableDRBDProxy provides a mock function with given fields: ctx, resName, nodeAName, nodeBName
func (*ResourceProvider) EnableSnapshotShipping ¶
func (_m *ResourceProvider) EnableSnapshotShipping(ctx context.Context, resName string, ship client.SnapshotShipping) error
EnableSnapshotShipping provides a mock function with given fields: ctx, resName, ship
func (*ResourceProvider) Get ¶
func (_m *ResourceProvider) Get(ctx context.Context, resName string, nodeName string, opts ...*client.ListOpts) (client.Resource, error)
Get provides a mock function with given fields: ctx, resName, nodeName, opts
func (*ResourceProvider) GetAll ¶
func (_m *ResourceProvider) GetAll(ctx context.Context, resName string, opts ...*client.ListOpts) ([]client.Resource, error)
GetAll provides a mock function with given fields: ctx, resName, opts
func (*ResourceProvider) GetConnectionPropsInfos ¶
func (_m *ResourceProvider) GetConnectionPropsInfos(ctx context.Context, resName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetConnectionPropsInfos provides a mock function with given fields: ctx, resName, opts
func (*ResourceProvider) GetConnections ¶
func (_m *ResourceProvider) GetConnections(ctx context.Context, resName string, nodeAName string, nodeBName string, opts ...*client.ListOpts) ([]client.ResourceConnection, error)
GetConnections provides a mock function with given fields: ctx, resName, nodeAName, nodeBName, opts
func (*ResourceProvider) GetPropsInfos ¶
func (_m *ResourceProvider) GetPropsInfos(ctx context.Context, resName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetPropsInfos provides a mock function with given fields: ctx, resName, opts
func (*ResourceProvider) GetResourceView ¶
func (_m *ResourceProvider) GetResourceView(ctx context.Context, opts ...*client.ListOpts) ([]client.ResourceWithVolumes, error)
GetResourceView provides a mock function with given fields: ctx, opts
func (*ResourceProvider) GetSnapshot ¶
func (_m *ResourceProvider) GetSnapshot(ctx context.Context, resName string, snapName string, opts ...*client.ListOpts) (client.Snapshot, error)
GetSnapshot provides a mock function with given fields: ctx, resName, snapName, opts
func (*ResourceProvider) GetSnapshotShippings ¶
func (_m *ResourceProvider) GetSnapshotShippings(ctx context.Context, opts ...*client.ListOpts) ([]client.SnapshotShippingStatus, error)
GetSnapshotShippings provides a mock function with given fields: ctx, opts
func (*ResourceProvider) GetSnapshotView ¶
func (_m *ResourceProvider) GetSnapshotView(ctx context.Context, opts ...*client.ListOpts) ([]client.Snapshot, error)
GetSnapshotView provides a mock function with given fields: ctx, opts
func (*ResourceProvider) GetSnapshots ¶
func (_m *ResourceProvider) GetSnapshots(ctx context.Context, resName string, opts ...*client.ListOpts) ([]client.Snapshot, error)
GetSnapshots provides a mock function with given fields: ctx, resName, opts
func (*ResourceProvider) GetVolume ¶
func (_m *ResourceProvider) GetVolume(ctx context.Context, resName string, nodeName string, volNr int, opts ...*client.ListOpts) (client.Volume, error)
GetVolume provides a mock function with given fields: ctx, resName, nodeName, volNr, opts
func (*ResourceProvider) GetVolumeDefinitionPropsInfos ¶
func (_m *ResourceProvider) GetVolumeDefinitionPropsInfos(ctx context.Context, resName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetVolumeDefinitionPropsInfos provides a mock function with given fields: ctx, resName, opts
func (*ResourceProvider) GetVolumePropsInfos ¶
func (_m *ResourceProvider) GetVolumePropsInfos(ctx context.Context, resName string, nodeName string, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetVolumePropsInfos provides a mock function with given fields: ctx, resName, nodeName, opts
func (*ResourceProvider) GetVolumes ¶
func (_m *ResourceProvider) GetVolumes(ctx context.Context, resName string, nodeName string, opts ...*client.ListOpts) ([]client.Volume, error)
GetVolumes provides a mock function with given fields: ctx, resName, nodeName, opts
func (*ResourceProvider) MakeAvailable ¶
func (_m *ResourceProvider) MakeAvailable(ctx context.Context, resName string, nodeName string, makeAvailable client.ResourceMakeAvailable) error
MakeAvailable provides a mock function with given fields: ctx, resName, nodeName, makeAvailable
func (*ResourceProvider) Migrate ¶
func (_m *ResourceProvider) Migrate(ctx context.Context, resName string, fromNodeName string, toNodeName string, storagePoolName string) error
Migrate provides a mock function with given fields: ctx, resName, fromNodeName, toNodeName, storagePoolName
func (*ResourceProvider) Modify ¶
func (_m *ResourceProvider) Modify(ctx context.Context, resName string, nodeName string, props client.GenericPropsModify) error
Modify provides a mock function with given fields: ctx, resName, nodeName, props
func (*ResourceProvider) ModifyConnection ¶
func (_m *ResourceProvider) ModifyConnection(ctx context.Context, resName string, nodeAName string, nodeBName string, props client.GenericPropsModify) error
ModifyConnection provides a mock function with given fields: ctx, resName, nodeAName, nodeBName, props
func (*ResourceProvider) ModifyDRBDProxy ¶
func (_m *ResourceProvider) ModifyDRBDProxy(ctx context.Context, resName string, props client.DrbdProxyModify) error
ModifyDRBDProxy provides a mock function with given fields: ctx, resName, props
func (*ResourceProvider) ModifyVolume ¶
func (_m *ResourceProvider) ModifyVolume(ctx context.Context, resName string, nodeName string, volNr int, props client.GenericPropsModify) error
ModifyVolume provides a mock function with given fields: ctx, resName, nodeName, volNr, props
func (*ResourceProvider) QueryMaxVolumeSize ¶
func (_m *ResourceProvider) QueryMaxVolumeSize(ctx context.Context, filter client.AutoSelectFilter) (client.MaxVolumeSizes, error)
QueryMaxVolumeSize provides a mock function with given fields: ctx, filter
func (*ResourceProvider) RestoreSnapshot ¶
func (_m *ResourceProvider) RestoreSnapshot(ctx context.Context, origResName string, snapName string, snapRestoreConf client.SnapshotRestore) error
RestoreSnapshot provides a mock function with given fields: ctx, origResName, snapName, snapRestoreConf
func (*ResourceProvider) RestoreVolumeDefinitionSnapshot ¶
func (_m *ResourceProvider) RestoreVolumeDefinitionSnapshot(ctx context.Context, origResName string, snapName string, snapRestoreConf client.SnapshotRestore) error
RestoreVolumeDefinitionSnapshot provides a mock function with given fields: ctx, origResName, snapName, snapRestoreConf
func (*ResourceProvider) RollbackSnapshot ¶
func (_m *ResourceProvider) RollbackSnapshot(ctx context.Context, resName string, snapName string) error
RollbackSnapshot provides a mock function with given fields: ctx, resName, snapName
type StoragePoolDefinitionProvider ¶
StoragePoolDefinitionProvider is an autogenerated mock type for the StoragePoolDefinitionProvider type
func NewStoragePoolDefinitionProvider ¶ added in v0.20.0
func NewStoragePoolDefinitionProvider(t NewStoragePoolDefinitionProviderT) *StoragePoolDefinitionProvider
NewStoragePoolDefinitionProvider creates a new instance of StoragePoolDefinitionProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StoragePoolDefinitionProvider) Create ¶
func (_m *StoragePoolDefinitionProvider) Create(ctx context.Context, spd client.StoragePoolDefinition) error
Create provides a mock function with given fields: ctx, spd
func (*StoragePoolDefinitionProvider) Delete ¶
func (_m *StoragePoolDefinitionProvider) Delete(ctx context.Context, spdName string) error
Delete provides a mock function with given fields: ctx, spdName
func (*StoragePoolDefinitionProvider) Get ¶
func (_m *StoragePoolDefinitionProvider) Get(ctx context.Context, spdName string, opts ...*client.ListOpts) (client.StoragePoolDefinition, error)
Get provides a mock function with given fields: ctx, spdName, opts
func (*StoragePoolDefinitionProvider) GetAll ¶
func (_m *StoragePoolDefinitionProvider) GetAll(ctx context.Context, opts ...*client.ListOpts) ([]client.StoragePoolDefinition, error)
GetAll provides a mock function with given fields: ctx, opts
func (*StoragePoolDefinitionProvider) GetPropsInfos ¶
func (_m *StoragePoolDefinitionProvider) GetPropsInfos(ctx context.Context, opts ...*client.ListOpts) ([]client.PropsInfo, error)
GetPropsInfos provides a mock function with given fields: ctx, opts
func (*StoragePoolDefinitionProvider) Modify ¶
func (_m *StoragePoolDefinitionProvider) Modify(ctx context.Context, spdName string, props client.StoragePoolDefinitionModify) error
Modify provides a mock function with given fields: ctx, spdName, props
type VendorProvider ¶
VendorProvider is an autogenerated mock type for the VendorProvider type
func NewVendorProvider ¶ added in v0.20.0
func NewVendorProvider(t NewVendorProviderT) *VendorProvider
NewVendorProvider creates a new instance of VendorProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*VendorProvider) CreateExosEnclosure ¶
func (_m *VendorProvider) CreateExosEnclosure(ctx context.Context, enclosure client.ExosEnclosure) error
CreateExosEnclosure provides a mock function with given fields: ctx, enclosure
func (*VendorProvider) DeleteExosEnclosure ¶
func (_m *VendorProvider) DeleteExosEnclosure(ctx context.Context, name string) error
DeleteExosEnclosure provides a mock function with given fields: ctx, name
func (*VendorProvider) GetExosConnectionMap ¶
func (_m *VendorProvider) GetExosConnectionMap(ctx context.Context) (client.ExosConnectionMap, error)
GetExosConnectionMap provides a mock function with given fields: ctx
func (*VendorProvider) GetExosDefaults ¶
func (_m *VendorProvider) GetExosDefaults(ctx context.Context) (client.ExosDefaults, error)
GetExosDefaults provides a mock function with given fields: ctx
func (*VendorProvider) GetExosEnclosures ¶
func (_m *VendorProvider) GetExosEnclosures(ctx context.Context, noCache bool) ([]client.ExosEnclosure, error)
GetExosEnclosures provides a mock function with given fields: ctx, noCache
func (*VendorProvider) GetExosEvents ¶
func (_m *VendorProvider) GetExosEvents(ctx context.Context, name string, count int32) ([]client.ExosEnclosureEvent, error)
GetExosEvents provides a mock function with given fields: ctx, name, count
func (*VendorProvider) ModifyExosDefaults ¶
func (_m *VendorProvider) ModifyExosDefaults(ctx context.Context, defaults client.ExosDefaultsModify) error
ModifyExosDefaults provides a mock function with given fields: ctx, defaults
func (*VendorProvider) ModifyExosEnclosure ¶
func (_m *VendorProvider) ModifyExosEnclosure(ctx context.Context, name string, enclosure client.ExosEnclosure) error
ModifyExosEnclosure provides a mock function with given fields: ctx, name, enclosure
Source Files ¶
- BackupProvider.go
- ControllerProvider.go
- EncryptionProvider.go
- EventProvider.go
- KeyValueStoreProvider.go
- LeveledLogger.go
- Logger.go
- NodeProvider.go
- OneOfDrbdResourceDefinitionLayerOpenflexResourceDefinitionLayer.go
- OneOfDrbdVolumeDefinition.go
- OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolume.go
- OneOfDrbdVolumeLuksVolumeStorageVolumeNvmeVolumeWritecacheVolumeCacheVolumeBCacheVolume.go
- Option.go
- RemoteProvider.go
- ResourceDefinitionProvider.go
- ResourceGroupProvider.go
- ResourceProvider.go
- StoragePoolDefinitionProvider.go
- VendorProvider.go