Documentation ¶
Index ¶
- func ApplyPlan(ctx *context.Context, bucket *storage.BucketHandle, ...) error
- func FullMetadataEqual(attrs1 *storage.ObjectAttrs, attrs2 *storage.ObjectAttrs) bool
- func ListCurrentObjects(ctx *context.Context, bucket *storage.BucketHandle) (map[string]*storage.ObjectAttrs, error)
- func ListObjectsAtRestoreTime(ctx *context.Context, bucket *storage.BucketHandle, restoreTime time.Time) (map[string]*storage.ObjectAttrs, error)
- func ParseTime(timeStr string) (time.Time, error)
- func PlanRestore(ctx *context.Context, bucket *storage.BucketHandle, restoreTime time.Time) (map[string]PlanElement, error)
- type Action
- type PlanElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyPlan ¶
func ApplyPlan(ctx *context.Context, bucket *storage.BucketHandle, planElements map[string]PlanElement) error
func FullMetadataEqual ¶
func FullMetadataEqual(attrs1 *storage.ObjectAttrs, attrs2 *storage.ObjectAttrs) bool
func ListCurrentObjects ¶
func ListCurrentObjects(ctx *context.Context, bucket *storage.BucketHandle) (map[string]*storage.ObjectAttrs, error)
func ListObjectsAtRestoreTime ¶
func ListObjectsAtRestoreTime(ctx *context.Context, bucket *storage.BucketHandle, restoreTime time.Time) (map[string]*storage.ObjectAttrs, error)
func PlanRestore ¶
func PlanRestore(ctx *context.Context, bucket *storage.BucketHandle, restoreTime time.Time) (map[string]PlanElement, error)
Types ¶
type PlanElement ¶
type PlanElement struct { Action Action RestoreAttrs *storage.ObjectAttrs CurrentAttrs *storage.ObjectAttrs }
Click to show internal directories.
Click to hide internal directories.