Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultPrefix = "archive/db"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveResult ¶
type ObjectStore ¶
type Options ¶
type Options struct {
Prefix string
Now func() time.Time
Store ObjectStore
Progress func(Event)
}
type RestorePlan ¶
type RestorePlan struct {
Object Object `json:"object"`
}
type RestoreResult ¶
type RestoreResult struct {
Key string `json:"key"`
RestoredPath string `json:"restored_path"`
BackupPaths []string `json:"backup_paths,omitempty"`
RestoredAt time.Time `json:"restored_at"`
}
func Restore ¶
func Restore(ctx context.Context, cfg config.Config, plan RestorePlan, opts Options) (RestoreResult, error)
type S3Store ¶
type S3Store struct {
// contains filtered or unexported fields
}
func NewS3Store ¶
func (*S3Store) ListObjects ¶
Click to show internal directories.
Click to hide internal directories.