Documentation ¶
Index ¶
- type BackupListing
- type Downloader
- func (_m *Downloader) BackupMeta(name string) (*models.Backup, error)
- func (_m *Downloader) DownloadOplogArchive(arch models.Archive, writeCloser io.WriteCloser) error
- func (_m *Downloader) LastKnownArchiveTS() (models.Timestamp, error)
- func (_m *Downloader) ListBackups() ([]internal.BackupTime, []string, error)
- func (_m *Downloader) ListOplogArchives() ([]models.Archive, error)
- func (_m *Downloader) LoadBackups(names []string) ([]*models.Backup, error)
- type ErrWaiter
- type MongoMetaConstructor
- type Purger
- type Uploader
- func (_m *Uploader) UploadBackup(stream io.Reader, cmd internal.ErrWaiter, ...) error
- func (_m *Uploader) UploadGapArchive(err error, firstTS models.Timestamp, lastTS models.Timestamp) error
- func (_m *Uploader) UploadOplogArchive(stream io.Reader, firstTS models.Timestamp, lastTS models.Timestamp) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupListing ¶
BackupListing is an autogenerated mock type for the BackupListing type
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 ¶
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 MongoMetaConstructor ¶
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 ¶
func (_m *MongoMetaConstructor) Meta() models.BackupMeta
Meta provides a mock function with given fields:
type Purger ¶
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 ¶
DeleteBackups provides a mock function with given fields: backups
func (*Purger) DeleteGarbage ¶
DeleteGarbage provides a mock function with given fields: garbage
type Uploader ¶
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