mocks

package
Version: v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupStore

type BackupStore struct {
	mock.Mock
}

BackupStore is an autogenerated mock type for the BackupStore type

func (*BackupStore) BackupExists added in v1.0.0

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) GetBackupMetadata

func (_m *BackupStore) GetBackupMetadata(name string) (*v1.Backup, error)

GetBackupMetadata 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) GetCSIVolumeSnapshotContents added in v1.4.0

func (_m *BackupStore) GetCSIVolumeSnapshotContents(backup string) ([]*snapshotv1beta1api.VolumeSnapshotContent, error)

func (*BackupStore) GetCSIVolumeSnapshots added in v1.4.0

func (_m *BackupStore) GetCSIVolumeSnapshots(backup string) ([]*snapshotv1beta1api.VolumeSnapshot, error)

func (*BackupStore) GetDownloadURL

func (_m *BackupStore) GetDownloadURL(target v1.DownloadTarget) (string, error)

GetDownloadURL provides a mock function with given fields: target

func (*BackupStore) GetPodVolumeBackups added in v1.0.1

func (_m *BackupStore) GetPodVolumeBackups(name string) ([]*v1.PodVolumeBackup, error)

GetPodVolumeBackups 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) PutRestoreLog

func (_m *BackupStore) PutRestoreLog(backup string, restore string, log io.Reader) error

PutRestoreLog provides a mock function with given fields: backup, restore, log

func (*BackupStore) PutRestoreResults

func (_m *BackupStore) PutRestoreResults(backup string, restore string, results io.Reader) error

PutRestoreResults provides a mock function with given fields: backup, restore, results

type ObjectStore added in v1.2.0

type ObjectStore struct {
	mock.Mock
}

ObjectStore is an autogenerated mock type for the ObjectStore type

func (*ObjectStore) CreateSignedURL added in v1.2.0

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 added in v1.2.0

func (_m *ObjectStore) DeleteObject(bucket string, key string) error

DeleteObject provides a mock function with given fields: bucket, key

func (*ObjectStore) GetObject added in v1.2.0

func (_m *ObjectStore) GetObject(bucket string, key string) (io.ReadCloser, error)

GetObject provides a mock function with given fields: bucket, key

func (*ObjectStore) Init added in v1.2.0

func (_m *ObjectStore) Init(config map[string]string) error

Init provides a mock function with given fields: config

func (*ObjectStore) ListCommonPrefixes added in v1.2.0

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 added in v1.2.0

func (_m *ObjectStore) ListObjects(bucket string, prefix string) ([]string, error)

ListObjects provides a mock function with given fields: bucket, prefix

func (*ObjectStore) ObjectExists added in v1.2.0

func (_m *ObjectStore) ObjectExists(bucket string, key string) (bool, error)

ObjectExists provides a mock function with given fields: bucket, key

func (*ObjectStore) PutObject added in v1.2.0

func (_m *ObjectStore) PutObject(bucket string, key string, body io.Reader) error

PutObject provides a mock function with given fields: bucket, key, body

Jump to

Keyboard shortcuts

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