Documentation ¶
Index ¶
- func NewUnversionedRestoreCollection(t *testing.T, col data.RestoreCollection) *unversionedRestoreCollection
- func NewVersionedBackupCollection(t *testing.T, col data.BackupCollection) *versionedBackupCollection
- type Collection
- func (c Collection) DoNotMergeItems() bool
- func (c Collection) FetchItemByName(ctx context.Context, name string) (data.Item, error)
- func (c Collection) FullPath() path.Path
- func (c Collection) Items(ctx context.Context, errs *fault.Bus) <-chan data.Item
- func (c Collection) LocationPath() *path.Builder
- func (c Collection) PreviousPath() path.Path
- func (c Collection) State() data.CollectionState
- type Item
- type RestoreCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUnversionedRestoreCollection ¶
func NewUnversionedRestoreCollection( t *testing.T, col data.RestoreCollection, ) *unversionedRestoreCollection
func NewVersionedBackupCollection ¶
func NewVersionedBackupCollection( t *testing.T, col data.BackupCollection, ) *versionedBackupCollection
Types ¶
type Collection ¶
type Collection struct { Path path.Path Loc *path.Builder ItemData []data.Item ItemsRecoverableErrs []error CState data.CollectionState // For restore AuxItems map[string]data.Item }
func (Collection) DoNotMergeItems ¶
func (c Collection) DoNotMergeItems() bool
func (Collection) FetchItemByName ¶
func (Collection) FullPath ¶
func (c Collection) FullPath() path.Path
func (Collection) LocationPath ¶
func (c Collection) LocationPath() *path.Builder
func (Collection) PreviousPath ¶
func (c Collection) PreviousPath() path.Path
func (Collection) State ¶
func (c Collection) State() data.CollectionState
type Item ¶
type Item struct { DeletedFlag bool ItemID string ItemInfo details.ItemInfo ItemSize int64 ModifiedTime time.Time Reader io.ReadCloser ReadErr error }
func (*Item) ToReader ¶
func (s *Item) ToReader() io.ReadCloser
type RestoreCollection ¶
type RestoreCollection struct { data.Collection AuxItems map[string]data.Item }
func (RestoreCollection) FetchItemByName ¶
Click to show internal directories.
Click to hide internal directories.