Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListVersions ¶
ListVersions returns all backup versions for a project. Uses the default production dependencies.
Types ¶
type RecoverOptions ¶
type RecoverOptions struct {
Project string
Version string // YYYYMMDD-HHMMSS format, empty for latest
Wipe bool // Delete current before restore
Archive bool // Archive current before restore
}
RecoverOptions configures a recovery operation.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides recovery operations with injected dependencies.
func NewDefaultService ¶
func NewDefaultService() *Service
NewDefaultService creates a recovery service with real production dependencies.
func NewService ¶
func NewService(fs ports.FileSystem, archiver ports.Archiver) *Service
NewService creates a new recovery service with the given dependencies.
func (*Service) ListVersions ¶
ListVersions returns all backup versions for a project.
Click to show internal directories.
Click to hide internal directories.