Documentation
¶
Index ¶
- Constants
- func Create(cfg *core.Configuration, reason string) (nowTime time.Time, returnedError error)
- func CreateIfNecessary(cfg *core.Configuration) error
- func ReadLastBackupTimestamp(cfg *core.Configuration) (time.Time, error)
- func WriteLastBackupTimestamp(cfg *core.Configuration, t time.Time) error
Constants ¶
View Source
const (
// A time format corresponding to YYYYMMDDHHMM without any separator chars.
TimeFormat = "200601021504"
)
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create creates a backup unconditionally. The provided `reason` is used in log messages to explain why the backup was created.
func CreateIfNecessary ¶
func CreateIfNecessary(cfg *core.Configuration) error
CreateIfNecessary creates a backup if the schedule demands it.
func ReadLastBackupTimestamp ¶
func ReadLastBackupTimestamp(cfg *core.Configuration) (time.Time, error)
ReadLastBackupTimestamp reads the "last_backup_timestamp" object in Swift to find when the most recent backup was created.
func WriteLastBackupTimestamp ¶
func WriteLastBackupTimestamp(cfg *core.Configuration, t time.Time) error
WriteLastBackupTimestamp updates the "last_backup_timestamp" object in Swift to indicate that a backup was completed successfully.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.