Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) ConnectToRepo(repo *v1.BackupRepository) error
- func (_m *Manager) DefaultMaintenanceFrequency(repo *v1.BackupRepository) (time.Duration, error)
- func (_m *Manager) Forget(_a0 context.Context, _a1 repository.SnapshotIdentifier) error
- func (_m *Manager) InitRepo(repo *v1.BackupRepository) error
- func (_m *Manager) PrepareRepo(repo *v1.BackupRepository) error
- func (_m *Manager) PruneRepo(repo *v1.BackupRepository) error
- func (_m *Manager) UnlockRepo(repo *v1.BackupRepository) error
- type RepositoryWriter
- func (_m *RepositoryWriter) ClientOptions() repo.ClientOptions
- func (_m *RepositoryWriter) Close(ctx context.Context) error
- func (_m *RepositoryWriter) ContentInfo(ctx context.Context, contentID index.ID) (index.Info, error)
- func (_m *RepositoryWriter) DeleteManifest(ctx context.Context, id manifest.ID) error
- func (_m *RepositoryWriter) FindManifests(ctx context.Context, labels map[string]string) ([]*manifest.EntryMetadata, error)
- func (_m *RepositoryWriter) Flush(ctx context.Context) error
- func (_m *RepositoryWriter) GetManifest(ctx context.Context, id manifest.ID, data interface{}) (*manifest.EntryMetadata, error)
- func (_m *RepositoryWriter) NewObjectWriter(ctx context.Context, opt object.WriterOptions) object.Writer
- func (_m *RepositoryWriter) NewWriter(ctx context.Context, opt repo.WriteSessionOptions) (context.Context, repo.RepositoryWriter, error)
- func (_m *RepositoryWriter) OpenObject(ctx context.Context, id object.ID) (object.Reader, error)
- func (_m *RepositoryWriter) PrefetchContents(ctx context.Context, contentIDs []index.ID, hint string) []index.ID
- func (_m *RepositoryWriter) PrefetchObjects(ctx context.Context, objectIDs []object.ID, hint string) ([]index.ID, error)
- func (_m *RepositoryWriter) PutManifest(ctx context.Context, labels map[string]string, payload interface{}) (manifest.ID, error)
- func (_m *RepositoryWriter) Refresh(ctx context.Context) error
- func (_m *RepositoryWriter) Time() time.Time
- func (_m *RepositoryWriter) UpdateDescription(d string)
- func (_m *RepositoryWriter) VerifyObject(ctx context.Context, id object.ID) ([]index.ID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
func NewManager(t mockConstructorTestingTNewManager) *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.
func (*Manager) ConnectToRepo ¶
func (_m *Manager) ConnectToRepo(repo *v1.BackupRepository) error
ConnectToRepo provides a mock function with given fields: repo
func (*Manager) DefaultMaintenanceFrequency ¶
DefaultMaintenanceFrequency provides a mock function with given fields: repo
func (*Manager) Forget ¶
func (_m *Manager) Forget(_a0 context.Context, _a1 repository.SnapshotIdentifier) error
Forget provides a mock function with given fields: _a0, _a1
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 ¶
RepositoryWriter is an autogenerated mock type for the RepositoryWriter type
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) 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 ¶
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 ¶
func (_m *RepositoryWriter) NewWriter(ctx context.Context, opt repo.WriteSessionOptions) (context.Context, repo.RepositoryWriter, error)
NewWriter provides a mock function with given fields: ctx, opt
func (*RepositoryWriter) OpenObject ¶
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) 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 ¶
VerifyObject provides a mock function with given fields: ctx, id