mocks

package
v1.10.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 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 BackupRepo

type BackupRepo struct {
	mock.Mock
}

BackupRepo is an autogenerated mock type for the BackupRepo type

func NewBackupRepo

func NewBackupRepo(t mockConstructorTestingTNewBackupRepo) *BackupRepo

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

func (*BackupRepo) Close

func (_m *BackupRepo) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*BackupRepo) DeleteManifest

func (_m *BackupRepo) DeleteManifest(ctx context.Context, id udmrepo.ID) error

DeleteManifest provides a mock function with given fields: ctx, id

func (*BackupRepo) FindManifests

func (_m *BackupRepo) FindManifests(ctx context.Context, filter udmrepo.ManifestFilter) ([]*udmrepo.ManifestEntryMetadata, error)

FindManifests provides a mock function with given fields: ctx, filter

func (*BackupRepo) Flush

func (_m *BackupRepo) Flush(ctx context.Context) error

Flush provides a mock function with given fields: ctx

func (*BackupRepo) GetManifest

func (_m *BackupRepo) GetManifest(ctx context.Context, id udmrepo.ID, mani *udmrepo.RepoManifest) error

GetManifest provides a mock function with given fields: ctx, id, mani

func (*BackupRepo) NewObjectWriter

NewObjectWriter provides a mock function with given fields: ctx, opt

func (*BackupRepo) OpenObject

func (_m *BackupRepo) OpenObject(ctx context.Context, id udmrepo.ID) (udmrepo.ObjectReader, error)

OpenObject provides a mock function with given fields: ctx, id

func (*BackupRepo) PutManifest

func (_m *BackupRepo) PutManifest(ctx context.Context, mani udmrepo.RepoManifest) (udmrepo.ID, error)

PutManifest provides a mock function with given fields: ctx, mani

func (*BackupRepo) Time

func (_m *BackupRepo) Time() time.Time

Time provides a mock function with given fields:

type BackupRepoService

type BackupRepoService struct {
	mock.Mock
}

BackupRepoService is an autogenerated mock type for the BackupRepoService type

func NewBackupRepoService

func NewBackupRepoService(t mockConstructorTestingTNewBackupRepoService) *BackupRepoService

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

func (*BackupRepoService) DefaultMaintenanceFrequency

func (_m *BackupRepoService) DefaultMaintenanceFrequency() time.Duration

DefaultMaintenanceFrequency provides a mock function with given fields:

func (*BackupRepoService) Init

func (_m *BackupRepoService) Init(ctx context.Context, repoOption udmrepo.RepoOptions, createNew bool) error

Init provides a mock function with given fields: ctx, repoOption, createNew

func (*BackupRepoService) Maintain

func (_m *BackupRepoService) Maintain(ctx context.Context, repoOption udmrepo.RepoOptions) error

Maintain provides a mock function with given fields: ctx, repoOption

func (*BackupRepoService) Open

Open provides a mock function with given fields: ctx, repoOption

type ObjectReader

type ObjectReader struct {
	mock.Mock
}

ObjectReader is an autogenerated mock type for the ObjectReader type

func NewObjectReader

func NewObjectReader(t mockConstructorTestingTNewObjectReader) *ObjectReader

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

func (*ObjectReader) Close

func (_m *ObjectReader) Close() error

Close provides a mock function with given fields:

func (*ObjectReader) Length

func (_m *ObjectReader) Length() int64

Length provides a mock function with given fields:

func (*ObjectReader) Read

func (_m *ObjectReader) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

func (*ObjectReader) Seek

func (_m *ObjectReader) Seek(offset int64, whence int) (int64, error)

Seek provides a mock function with given fields: offset, whence

type ObjectWriter

type ObjectWriter struct {
	mock.Mock
}

ObjectWriter is an autogenerated mock type for the ObjectWriter type

func NewObjectWriter

func NewObjectWriter(t mockConstructorTestingTNewObjectWriter) *ObjectWriter

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

func (*ObjectWriter) Checkpoint

func (_m *ObjectWriter) Checkpoint() (udmrepo.ID, error)

Checkpoint provides a mock function with given fields:

func (*ObjectWriter) Close

func (_m *ObjectWriter) Close() error

Close provides a mock function with given fields:

func (*ObjectWriter) Result

func (_m *ObjectWriter) Result() (udmrepo.ID, error)

Result provides a mock function with given fields:

func (*ObjectWriter) Seek

func (_m *ObjectWriter) Seek(offset int64, whence int) (int64, error)

Seek provides a mock function with given fields: offset, whence

func (*ObjectWriter) Write

func (_m *ObjectWriter) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

Jump to

Keyboard shortcuts

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