Documentation ¶
Overview ¶
Package storage keep track of the uploaded backups.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditFile ¶
type AuditFile struct {
Filename string
}
AuditFile stores all backup informations in a simple text file.
func NewAuditFile ¶
NewAuditFile initializes a new AuditFile object.
type Storage ¶
type Storage interface { // Save a backup information. Save(cloud.Backup) error // List all backup informations in the storage. List() ([]cloud.Backup, error) // Remove a specific backup information from the storage. Remove(id string) error }
Storage represents all commands to manage backups information locally. After the backup is uploaded we must keep track of them locally to speed up recovery and cloud cleanup (remove old ones).
Click to show internal directories.
Click to hide internal directories.