Documentation ¶
Index ¶
- type BackupRepo
- func (_m *BackupRepo) Close(ctx context.Context) error
- func (_m *BackupRepo) ConcatenateObjects(ctx context.Context, objectIDs []udmrepo.ID) (udmrepo.ID, error)
- func (_m *BackupRepo) DeleteManifest(ctx context.Context, id udmrepo.ID) error
- func (_m *BackupRepo) FindManifests(ctx context.Context, filter udmrepo.ManifestFilter) ([]*udmrepo.ManifestEntryMetadata, error)
- func (_m *BackupRepo) Flush(ctx context.Context) error
- func (_m *BackupRepo) GetAdvancedFeatures() udmrepo.AdvancedFeatureInfo
- func (_m *BackupRepo) GetManifest(ctx context.Context, id udmrepo.ID, mani *udmrepo.RepoManifest) error
- func (_m *BackupRepo) NewObjectWriter(ctx context.Context, opt udmrepo.ObjectWriteOptions) udmrepo.ObjectWriter
- func (_m *BackupRepo) OpenObject(ctx context.Context, id udmrepo.ID) (udmrepo.ObjectReader, error)
- func (_m *BackupRepo) PutManifest(ctx context.Context, mani udmrepo.RepoManifest) (udmrepo.ID, error)
- func (_m *BackupRepo) Time() time.Time
- type BackupRepoService
- func (_m *BackupRepoService) DefaultMaintenanceFrequency() time.Duration
- func (_m *BackupRepoService) Init(ctx context.Context, repoOption udmrepo.RepoOptions, createNew bool) error
- func (_m *BackupRepoService) Maintain(ctx context.Context, repoOption udmrepo.RepoOptions) error
- func (_m *BackupRepoService) Open(ctx context.Context, repoOption udmrepo.RepoOptions) (udmrepo.BackupRepo, error)
- type ObjectReader
- type ObjectWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupRepo ¶
BackupRepo is an autogenerated mock type for the BackupRepo type
func NewBackupRepo ¶
func NewBackupRepo(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*BackupRepo) Close ¶
func (_m *BackupRepo) Close(ctx context.Context) error
Close provides a mock function with given fields: ctx
func (*BackupRepo) ConcatenateObjects ¶ added in v1.14.0
func (_m *BackupRepo) ConcatenateObjects(ctx context.Context, objectIDs []udmrepo.ID) (udmrepo.ID, error)
ConcatenateObjects provides a mock function with given fields: ctx, objectIDs
func (*BackupRepo) DeleteManifest ¶
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) GetAdvancedFeatures ¶ added in v1.14.0
func (_m *BackupRepo) GetAdvancedFeatures() udmrepo.AdvancedFeatureInfo
GetAdvancedFeatures provides a mock function with given fields:
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 ¶
func (_m *BackupRepo) NewObjectWriter(ctx context.Context, opt udmrepo.ObjectWriteOptions) udmrepo.ObjectWriter
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 ¶
BackupRepoService is an autogenerated mock type for the BackupRepoService type
func NewBackupRepoService ¶
func NewBackupRepoService(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 ¶
func (_m *BackupRepoService) Open(ctx context.Context, repoOption udmrepo.RepoOptions) (udmrepo.BackupRepo, error)
Open provides a mock function with given fields: ctx, repoOption
type ObjectReader ¶
ObjectReader is an autogenerated mock type for the ObjectReader type
func NewObjectReader ¶
func NewObjectReader(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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:
type ObjectWriter ¶
ObjectWriter is an autogenerated mock type for the ObjectWriter type
func NewObjectWriter ¶
func NewObjectWriter(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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: