Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStorageIfAbsent ¶
func CreateStorageIfAbsent(storagePath data.StoragePath) error
func GetBackupName ¶
func GetBackupName() (data.BackupName, error)
func GetState ¶
func GetState(storagePath data.StoragePath) (*state, error)
func NewState ¶
func NewState(storagePath data.StoragePath, lastBackup data.BackupName) *state
Types ¶
type Backup ¶
type Backup struct { CreationTime time.Time // Version is either Deployment ID (bootc/ostree systems) or version of the MicroShift binary (RPM systems). // Used for selecting version-wise compatible backups for restoring. Version string }
func (Backup) Name ¶
func (b Backup) Name() data.BackupName
type Backups ¶
type Backups []Backup
func GetBackups ¶
func GetBackups(storagePath data.StoragePath) (Backups, error)
func (Backups) FilterByVersion ¶
func (Backups) GetMostRecent ¶
func (Backups) RemoveBackup ¶
func (bs Backups) RemoveBackup(bb data.BackupName) Backups
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(storage data.StoragePath, saveFailed bool) (*Manager, error)
func (*Manager) PerformRestore ¶
Click to show internal directories.
Click to hide internal directories.