Documentation
¶
Index ¶
- type Manager
- func (_m *Manager) BatchForget(_a0 context.Context, _a1 *v1.BackupRepository, _a2 []string) []error
- 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 *v1.BackupRepository, _a2 string) 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) ConcatenateObjects(ctx context.Context, objectIDs []object.ID) (object.ID, 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) OnSuccessfulFlush(callback repo.RepositoryWriterCallback)
- 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) ReplaceManifests(ctx context.Context, labels map[string]string, payload interface{}) (manifest.ID, 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 ¶
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
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 ¶
DefaultMaintenanceFrequency provides a mock function with given fields: repo
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 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 ¶
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) 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 ¶
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 ¶
VerifyObject provides a mock function with given fields: ctx, id