archivemocks

package
v0.0.0-...-e89a0ad Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupListing

type BackupListing struct {
	mock.Mock
}

BackupListing is an autogenerated mock type for the BackupListing type

func (*BackupListing) Backups

func (_m *BackupListing) Backups(backups []*models.Backup, output io.Writer) error

Backups provides a mock function with given fields: backups, output

func (*BackupListing) Names

func (_m *BackupListing) Names(backups []internal.BackupTime, output io.Writer) error

Names provides a mock function with given fields: backups, output

type Downloader

type Downloader struct {
	mock.Mock
}

Downloader is an autogenerated mock type for the Downloader type

func NewDownloader

func NewDownloader(t mockConstructorTestingTNewDownloader) *Downloader

NewDownloader creates a new instance of Downloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Downloader) BackupMeta

func (_m *Downloader) BackupMeta(name string) (*models.Backup, error)

BackupMeta provides a mock function with given fields: name

func (*Downloader) DownloadOplogArchive

func (_m *Downloader) DownloadOplogArchive(arch models.Archive, writeCloser io.WriteCloser) error

DownloadOplogArchive provides a mock function with given fields: arch, writeCloser

func (*Downloader) LastKnownArchiveTS

func (_m *Downloader) LastKnownArchiveTS() (models.Timestamp, error)

LastKnownArchiveTS provides a mock function with given fields:

func (*Downloader) ListBackups

func (_m *Downloader) ListBackups() ([]internal.BackupTime, []string, error)

ListBackups provides a mock function with given fields:

func (*Downloader) ListOplogArchives

func (_m *Downloader) ListOplogArchives() ([]models.Archive, error)

ListOplogArchives provides a mock function with given fields:

func (*Downloader) LoadBackups

func (_m *Downloader) LoadBackups(names []string) ([]*models.Backup, error)

LoadBackups provides a mock function with given fields: names

type ErrWaiter

type ErrWaiter struct {
	mock.Mock
}

ErrWaiter is an autogenerated mock type for the ErrWaiter type

func (*ErrWaiter) Wait

func (_m *ErrWaiter) Wait() error

Wait provides a mock function with given fields:

type MongoMetaConstructor

type MongoMetaConstructor struct {
	mock.Mock
}

MongoMetaConstructor is an autogenerated mock type for the MongoMetaConstructor type

func (*MongoMetaConstructor) Finalize

func (_m *MongoMetaConstructor) Finalize(backupName string) error

Finalize provides a mock function with given fields: backupName

func (*MongoMetaConstructor) Init

func (_m *MongoMetaConstructor) Init(permanent bool) error

Init provides a mock function with given fields: permanent

func (*MongoMetaConstructor) Meta

Meta provides a mock function with given fields:

type Purger

type Purger struct {
	mock.Mock
}

Purger is an autogenerated mock type for the Purger type

func NewPurger

func NewPurger(t mockConstructorTestingTNewPurger) *Purger

NewPurger creates a new instance of Purger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Purger) DeleteBackups

func (_m *Purger) DeleteBackups(backups []*models.Backup) error

DeleteBackups provides a mock function with given fields: backups

func (*Purger) DeleteGarbage

func (_m *Purger) DeleteGarbage(garbage []string) error

DeleteGarbage provides a mock function with given fields: garbage

func (*Purger) DeleteOplogArchives

func (_m *Purger) DeleteOplogArchives(archives []models.Archive) error

DeleteOplogArchives provides a mock function with given fields: archives

type Uploader

type Uploader struct {
	mock.Mock
}

Uploader is an autogenerated mock type for the Uploader type

func NewUploader

func NewUploader(t mockConstructorTestingTNewUploader) *Uploader

NewUploader creates a new instance of Uploader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Uploader) UploadBackup

func (_m *Uploader) UploadBackup(stream io.Reader, cmd internal.ErrWaiter, metaConstructor internal.MetaConstructor) error

UploadBackup provides a mock function with given fields: stream, cmd, metaConstructor

func (*Uploader) UploadGapArchive

func (_m *Uploader) UploadGapArchive(err error, firstTS models.Timestamp, lastTS models.Timestamp) error

UploadGapArchive provides a mock function with given fields: err, firstTS, lastTS

func (*Uploader) UploadOplogArchive

func (_m *Uploader) UploadOplogArchive(stream io.Reader, firstTS models.Timestamp, lastTS models.Timestamp) error

UploadOplogArchive provides a mock function with given fields: stream, firstTS, lastTS

Jump to

Keyboard shortcuts

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