lib

package
v0.0.0-...-f9d0529 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 ParseTime

func ParseTime(timeStr string) (time.Time, error)

func PlanRestore

func PlanRestore(ctx *context.Context, bucket *storage.BucketHandle, restoreTime time.Time) (map[string]PlanElement, error)

Types

type Action

type Action int
const (
	RestoreObject Action = iota
	RestoreMetadata
	Delete
)

func (Action) String

func (i Action) String() string

type PlanElement

type PlanElement struct {
	Action       Action
	RestoreAttrs *storage.ObjectAttrs
	CurrentAttrs *storage.ObjectAttrs
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL