mocks

package
v1.28.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupBackend

type BackupBackend struct {
	mock.Mock
}

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

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

Jump to

Keyboard shortcuts

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