Documentation
¶
Index ¶
- type BackupBackend
- func (_m *BackupBackend) AllBackups(ctx context.Context) ([]*backup.DistributedBackupDescriptor, error)
- func (_m *BackupBackend) GetObject(ctx context.Context, backupID string, key string, overrideBucket string, ...) ([]byte, error)
- func (_m *BackupBackend) HomeDir(backupID string, overrideBucket string, overridePath string) string
- func (_m *BackupBackend) Initialize(ctx context.Context, backupID string, overrideBucket string, ...) error
- func (_m *BackupBackend) IsExternal() bool
- func (_m *BackupBackend) Name() string
- func (_m *BackupBackend) PutObject(ctx context.Context, backupID string, key string, overrideBucket string, ...) error
- func (_m *BackupBackend) Read(ctx context.Context, backupID string, key string, overrideBucket string, ...) (int64, error)
- func (_m *BackupBackend) SourceDataPath() string
- func (_m *BackupBackend) Write(ctx context.Context, backupID string, key string, overrideBucket string, ...) (int64, error)
- func (_m *BackupBackend) WriteToFile(ctx context.Context, backupID string, key string, destPath string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupBackend ¶
BackupBackend is an autogenerated mock type for the BackupBackend type
func NewBackupBackend ¶
func NewBackupBackend(t interface {
mock.TestingT
Cleanup(func())
}) *BackupBackend
NewBackupBackend creates a new instance of BackupBackend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*BackupBackend) AllBackups ¶
func (_m *BackupBackend) AllBackups(ctx context.Context) ([]*backup.DistributedBackupDescriptor, error)
AllBackups provides a mock function with given fields: ctx
func (*BackupBackend) GetObject ¶
func (_m *BackupBackend) GetObject(ctx context.Context, backupID string, key string, overrideBucket string, overridePath string) ([]byte, error)
GetObject provides a mock function with given fields: ctx, backupID, key, overrideBucket, overridePath
func (*BackupBackend) HomeDir ¶
func (_m *BackupBackend) HomeDir(backupID string, overrideBucket string, overridePath string) string
HomeDir provides a mock function with given fields: backupID, overrideBucket, overridePath
func (*BackupBackend) Initialize ¶
func (_m *BackupBackend) Initialize(ctx context.Context, backupID string, overrideBucket string, overridePath string) error
Initialize provides a mock function with given fields: ctx, backupID, overrideBucket, overridePath
func (*BackupBackend) IsExternal ¶
func (_m *BackupBackend) IsExternal() bool
IsExternal provides a mock function with given fields:
func (*BackupBackend) Name ¶
func (_m *BackupBackend) Name() string
Name provides a mock function with given fields:
func (*BackupBackend) PutObject ¶
func (_m *BackupBackend) PutObject(ctx context.Context, backupID string, key string, overrideBucket string, overridePath string, byes []byte) error
PutObject provides a mock function with given fields: ctx, backupID, key, overrideBucket, overridePath, byes
func (*BackupBackend) Read ¶
func (_m *BackupBackend) Read(ctx context.Context, backupID string, key string, overrideBucket string, overridePath string, w io.WriteCloser) (int64, error)
Read provides a mock function with given fields: ctx, backupID, key, overrideBucket, overridePath, w
func (*BackupBackend) SourceDataPath ¶
func (_m *BackupBackend) SourceDataPath() string
SourceDataPath provides a mock function with given fields:
func (*BackupBackend) Write ¶
func (_m *BackupBackend) Write(ctx context.Context, backupID string, key string, overrideBucket string, overridePath string, r io.ReadCloser) (int64, error)
Write provides a mock function with given fields: ctx, backupID, key, overrideBucket, overridePath, r
func (*BackupBackend) WriteToFile ¶
func (_m *BackupBackend) WriteToFile(ctx context.Context, backupID string, key string, destPath string, overrideBucket string, overridePath string) error
WriteToFile provides a mock function with given fields: ctx, backupID, key, destPath, overrideBucket, overridePath