Documentation ¶
Overview ¶
Code generated by mockery v1.0.0. DO NOT EDIT.
Index ¶
- type BackupStore
- func (_m *BackupStore) BackupExists(bucket string, backupName string) (bool, error)
- func (_m *BackupStore) DeleteBackup(name string) error
- func (_m *BackupStore) DeleteRestore(name string) error
- func (_m *BackupStore) GetBackupContents(name string) (io.ReadCloser, error)
- func (_m *BackupStore) GetBackupItemOperations(name string) ([]*itemoperation.BackupOperation, error)
- func (_m *BackupStore) GetBackupMetadata(name string) (*v1.Backup, error)
- func (_m *BackupStore) GetBackupVolumeInfos(name string) ([]*volume.BackupVolumeInfo, error)
- func (_m *BackupStore) GetBackupVolumeSnapshots(name string) ([]*volume.Snapshot, error)
- func (_m *BackupStore) GetCSIVolumeSnapshotClasses(name string) ([]*volumesnapshotv1.VolumeSnapshotClass, error)
- func (_m *BackupStore) GetCSIVolumeSnapshotContents(name string) ([]*volumesnapshotv1.VolumeSnapshotContent, error)
- func (_m *BackupStore) GetCSIVolumeSnapshots(name string) ([]*volumesnapshotv1.VolumeSnapshot, error)
- func (_m *BackupStore) GetDownloadURL(target v1.DownloadTarget) (string, error)
- func (_m *BackupStore) GetPodVolumeBackups(name string) ([]*v1.PodVolumeBackup, error)
- func (_m *BackupStore) GetRestoreItemOperations(name string) ([]*itemoperation.RestoreOperation, error)
- func (_m *BackupStore) GetRestoreResults(name string) (map[string]results.Result, error)
- func (_m *BackupStore) GetRestoredResourceList(name string) (map[string][]string, error)
- func (_m *BackupStore) IsValid() error
- func (_m *BackupStore) ListBackups() ([]string, error)
- func (_m *BackupStore) PutBackup(info persistence.BackupInfo) error
- func (_m *BackupStore) PutBackupContents(backup string, backupContents io.Reader) error
- func (_m *BackupStore) PutBackupItemOperations(backup string, backupItemOperations io.Reader) error
- func (_m *BackupStore) PutBackupMetadata(backup string, backupMetadata io.Reader) error
- func (_m *BackupStore) PutBackupVolumeInfos(name string, volumeInfo io.Reader) error
- func (_m *BackupStore) PutRestoreItemOperations(restore string, restoreItemOperations io.Reader) error
- func (_m *BackupStore) PutRestoreLog(backup string, restore string, log io.Reader) error
- func (_m *BackupStore) PutRestoreResults(backup string, restore string, results io.Reader) error
- func (_m *BackupStore) PutRestoreVolumeInfo(restore string, results io.Reader) error
- func (_m *BackupStore) PutRestoredResourceList(restore string, results io.Reader) error
- type ObjectStore
- func (_m *ObjectStore) CreateSignedURL(bucket string, key string, ttl time.Duration) (string, error)
- func (_m *ObjectStore) DeleteObject(bucket string, key string) error
- func (_m *ObjectStore) GetObject(bucket string, key string) (io.ReadCloser, error)
- func (_m *ObjectStore) Init(config map[string]string) error
- func (_m *ObjectStore) ListCommonPrefixes(bucket string, prefix string, delimiter string) ([]string, error)
- func (_m *ObjectStore) ListObjects(bucket string, prefix string) ([]string, error)
- func (_m *ObjectStore) ObjectExists(bucket string, key string) (bool, error)
- func (_m *ObjectStore) PutObject(bucket string, key string, body io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupStore ¶
BackupStore is an autogenerated mock type for the BackupStore type
func NewBackupStore ¶
func NewBackupStore(t mockConstructorTestingTNewBackupStore) *BackupStore
NewBackupStore creates a new instance of BackupStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BackupStore) BackupExists ¶
func (_m *BackupStore) BackupExists(bucket string, backupName string) (bool, error)
BackupExists provides a mock function with given fields: bucket, backupName
func (*BackupStore) DeleteBackup ¶
func (_m *BackupStore) DeleteBackup(name string) error
DeleteBackup provides a mock function with given fields: name
func (*BackupStore) DeleteRestore ¶
func (_m *BackupStore) DeleteRestore(name string) error
DeleteRestore provides a mock function with given fields: name
func (*BackupStore) GetBackupContents ¶
func (_m *BackupStore) GetBackupContents(name string) (io.ReadCloser, error)
GetBackupContents provides a mock function with given fields: name
func (*BackupStore) GetBackupItemOperations ¶
func (_m *BackupStore) GetBackupItemOperations(name string) ([]*itemoperation.BackupOperation, error)
GetBackupItemOperations provides a mock function with given fields: name
func (*BackupStore) GetBackupMetadata ¶
func (_m *BackupStore) GetBackupMetadata(name string) (*v1.Backup, error)
GetBackupMetadata provides a mock function with given fields: name
func (*BackupStore) GetBackupVolumeInfos ¶
func (_m *BackupStore) GetBackupVolumeInfos(name string) ([]*volume.BackupVolumeInfo, error)
GetRestoreItemOperations provides a mock function with given fields: name
func (*BackupStore) GetBackupVolumeSnapshots ¶
func (_m *BackupStore) GetBackupVolumeSnapshots(name string) ([]*volume.Snapshot, error)
GetBackupVolumeSnapshots provides a mock function with given fields: name
func (*BackupStore) GetCSIVolumeSnapshotClasses ¶
func (_m *BackupStore) GetCSIVolumeSnapshotClasses(name string) ([]*volumesnapshotv1.VolumeSnapshotClass, error)
GetCSIVolumeSnapshotClasses provides a mock function with given fields: name
func (*BackupStore) GetCSIVolumeSnapshotContents ¶
func (_m *BackupStore) GetCSIVolumeSnapshotContents(name string) ([]*volumesnapshotv1.VolumeSnapshotContent, error)
GetCSIVolumeSnapshotContents provides a mock function with given fields: name
func (*BackupStore) GetCSIVolumeSnapshots ¶
func (_m *BackupStore) GetCSIVolumeSnapshots(name string) ([]*volumesnapshotv1.VolumeSnapshot, error)
GetCSIVolumeSnapshots provides a mock function with given fields: name
func (*BackupStore) GetDownloadURL ¶
func (_m *BackupStore) GetDownloadURL(target v1.DownloadTarget) (string, error)
GetDownloadURL provides a mock function with given fields: target
func (*BackupStore) GetPodVolumeBackups ¶
func (_m *BackupStore) GetPodVolumeBackups(name string) ([]*v1.PodVolumeBackup, error)
GetPodVolumeBackups provides a mock function with given fields: name
func (*BackupStore) GetRestoreItemOperations ¶
func (_m *BackupStore) GetRestoreItemOperations(name string) ([]*itemoperation.RestoreOperation, error)
GetRestoreItemOperations provides a mock function with given fields: name
func (*BackupStore) GetRestoreResults ¶
GetRestoreResults provides a mock function with given fields: name
func (*BackupStore) GetRestoredResourceList ¶
func (_m *BackupStore) GetRestoredResourceList(name string) (map[string][]string, error)
GetRestoredResourceList provides a mock function with given fields: name
func (*BackupStore) IsValid ¶
func (_m *BackupStore) IsValid() error
IsValid provides a mock function with given fields:
func (*BackupStore) ListBackups ¶
func (_m *BackupStore) ListBackups() ([]string, error)
ListBackups provides a mock function with given fields:
func (*BackupStore) PutBackup ¶
func (_m *BackupStore) PutBackup(info persistence.BackupInfo) error
PutBackup provides a mock function with given fields: info
func (*BackupStore) PutBackupContents ¶
func (_m *BackupStore) PutBackupContents(backup string, backupContents io.Reader) error
PutBackupContents provides a mock function with given fields: backup, backupContents
func (*BackupStore) PutBackupItemOperations ¶
func (_m *BackupStore) PutBackupItemOperations(backup string, backupItemOperations io.Reader) error
PutBackupItemOperations provides a mock function with given fields: backup, backupItemOperations
func (*BackupStore) PutBackupMetadata ¶
func (_m *BackupStore) PutBackupMetadata(backup string, backupMetadata io.Reader) error
PutBackupMetadata provides a mock function with given fields: backup, backupMetadata
func (*BackupStore) PutBackupVolumeInfos ¶
func (_m *BackupStore) PutBackupVolumeInfos(name string, volumeInfo io.Reader) error
PutBackupVolumeInfos provides a mock function with given fields: name, volumeInfo
func (*BackupStore) PutRestoreItemOperations ¶
func (_m *BackupStore) PutRestoreItemOperations(restore string, restoreItemOperations io.Reader) error
PutRestoreItemOperations provides a mock function with given fields: restore, restoreItemOperations
func (*BackupStore) PutRestoreLog ¶
PutRestoreLog provides a mock function with given fields: backup, restore, log
func (*BackupStore) PutRestoreResults ¶
PutRestoreResults provides a mock function with given fields: backup, restore, results
func (*BackupStore) PutRestoreVolumeInfo ¶
func (_m *BackupStore) PutRestoreVolumeInfo(restore string, results io.Reader) error
PutRestoreVolumeInfo provides a mock function with given fields: restore, results
func (*BackupStore) PutRestoredResourceList ¶
func (_m *BackupStore) PutRestoredResourceList(restore string, results io.Reader) error
PutRestoredResourceList provides a mock function with given fields: restore, results
type ObjectStore ¶
ObjectStore is an autogenerated mock type for the ObjectStore type
func (*ObjectStore) CreateSignedURL ¶
func (_m *ObjectStore) CreateSignedURL(bucket string, key string, ttl time.Duration) (string, error)
CreateSignedURL provides a mock function with given fields: bucket, key, ttl
func (*ObjectStore) DeleteObject ¶
func (_m *ObjectStore) DeleteObject(bucket string, key string) error
DeleteObject provides a mock function with given fields: bucket, key
func (*ObjectStore) GetObject ¶
func (_m *ObjectStore) GetObject(bucket string, key string) (io.ReadCloser, error)
GetObject provides a mock function with given fields: bucket, key
func (*ObjectStore) Init ¶
func (_m *ObjectStore) Init(config map[string]string) error
Init provides a mock function with given fields: config
func (*ObjectStore) ListCommonPrefixes ¶
func (_m *ObjectStore) ListCommonPrefixes(bucket string, prefix string, delimiter string) ([]string, error)
ListCommonPrefixes provides a mock function with given fields: bucket, prefix, delimiter
func (*ObjectStore) ListObjects ¶
func (_m *ObjectStore) ListObjects(bucket string, prefix string) ([]string, error)
ListObjects provides a mock function with given fields: bucket, prefix
func (*ObjectStore) ObjectExists ¶
func (_m *ObjectStore) ObjectExists(bucket string, key string) (bool, error)
ObjectExists provides a mock function with given fields: bucket, key