mocks

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) BatchForget added in v1.14.0

func (_m *Manager) BatchForget(_a0 context.Context, _a1 *v1.BackupRepository, _a2 []string) []error

BatchForget provides a mock function with given fields: _a0, _a1, _a2

func (*Manager) ConnectToRepo

func (_m *Manager) ConnectToRepo(repo *v1.BackupRepository) error

ConnectToRepo provides a mock function with given fields: repo

func (*Manager) DefaultMaintenanceFrequency

func (_m *Manager) DefaultMaintenanceFrequency(repo *v1.BackupRepository) (time.Duration, error)

DefaultMaintenanceFrequency provides a mock function with given fields: repo

func (*Manager) Forget

func (_m *Manager) Forget(_a0 context.Context, _a1 *v1.BackupRepository, _a2 string) error

Forget provides a mock function with given fields: _a0, _a1, _a2

func (*Manager) InitRepo

func (_m *Manager) InitRepo(repo *v1.BackupRepository) error

InitRepo provides a mock function with given fields: repo

func (*Manager) PrepareRepo

func (_m *Manager) PrepareRepo(repo *v1.BackupRepository) error

PrepareRepo provides a mock function with given fields: repo

func (*Manager) PruneRepo

func (_m *Manager) PruneRepo(repo *v1.BackupRepository) error

PruneRepo provides a mock function with given fields: repo

func (*Manager) UnlockRepo

func (_m *Manager) UnlockRepo(repo *v1.BackupRepository) error

UnlockRepo provides a mock function with given fields: repo

type RepositoryWriter

type RepositoryWriter struct {
	mock.Mock
}

RepositoryWriter is an autogenerated mock type for the RepositoryWriter type

func NewRepositoryWriter added in v1.12.0

func NewRepositoryWriter(t mockConstructorTestingTNewRepositoryWriter) *RepositoryWriter

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

func (*RepositoryWriter) ClientOptions

func (_m *RepositoryWriter) ClientOptions() repo.ClientOptions

ClientOptions provides a mock function with given fields:

func (*RepositoryWriter) Close

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

Close provides a mock function with given fields: ctx

func (*RepositoryWriter) ConcatenateObjects added in v1.12.0

func (_m *RepositoryWriter) ConcatenateObjects(ctx context.Context, objectIDs []object.ID) (object.ID, error)

ConcatenateObjects provides a mock function with given fields: ctx, objectIDs

func (*RepositoryWriter) ContentInfo

func (_m *RepositoryWriter) ContentInfo(ctx context.Context, contentID index.ID) (index.Info, error)

ContentInfo provides a mock function with given fields: ctx, contentID

func (*RepositoryWriter) DeleteManifest

func (_m *RepositoryWriter) DeleteManifest(ctx context.Context, id manifest.ID) error

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

func (*RepositoryWriter) FindManifests

func (_m *RepositoryWriter) FindManifests(ctx context.Context, labels map[string]string) ([]*manifest.EntryMetadata, error)

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

func (*RepositoryWriter) Flush

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

Flush provides a mock function with given fields: ctx

func (*RepositoryWriter) GetManifest

func (_m *RepositoryWriter) GetManifest(ctx context.Context, id manifest.ID, data interface{}) (*manifest.EntryMetadata, error)

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

func (*RepositoryWriter) NewObjectWriter

func (_m *RepositoryWriter) NewObjectWriter(ctx context.Context, opt object.WriterOptions) object.Writer

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

func (*RepositoryWriter) NewWriter

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

func (*RepositoryWriter) OnSuccessfulFlush added in v1.12.0

func (_m *RepositoryWriter) OnSuccessfulFlush(callback repo.RepositoryWriterCallback)

OnSuccessfulFlush provides a mock function with given fields: callback

func (*RepositoryWriter) OpenObject

func (_m *RepositoryWriter) OpenObject(ctx context.Context, id object.ID) (object.Reader, error)

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

func (*RepositoryWriter) PrefetchContents

func (_m *RepositoryWriter) PrefetchContents(ctx context.Context, contentIDs []index.ID, hint string) []index.ID

PrefetchContents provides a mock function with given fields: ctx, contentIDs, hint

func (*RepositoryWriter) PrefetchObjects

func (_m *RepositoryWriter) PrefetchObjects(ctx context.Context, objectIDs []object.ID, hint string) ([]index.ID, error)

PrefetchObjects provides a mock function with given fields: ctx, objectIDs, hint

func (*RepositoryWriter) PutManifest

func (_m *RepositoryWriter) PutManifest(ctx context.Context, labels map[string]string, payload interface{}) (manifest.ID, error)

PutManifest provides a mock function with given fields: ctx, labels, payload

func (*RepositoryWriter) Refresh

func (_m *RepositoryWriter) Refresh(ctx context.Context) error

Refresh provides a mock function with given fields: ctx

func (*RepositoryWriter) ReplaceManifests added in v1.12.0

func (_m *RepositoryWriter) ReplaceManifests(ctx context.Context, labels map[string]string, payload interface{}) (manifest.ID, error)

ReplaceManifests provides a mock function with given fields: ctx, labels, payload

func (*RepositoryWriter) Time

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

Time provides a mock function with given fields:

func (*RepositoryWriter) UpdateDescription

func (_m *RepositoryWriter) UpdateDescription(d string)

UpdateDescription provides a mock function with given fields: d

func (*RepositoryWriter) VerifyObject

func (_m *RepositoryWriter) VerifyObject(ctx context.Context, id object.ID) ([]index.ID, error)

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

Jump to

Keyboard shortcuts

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