Documentation ¶
Index ¶
- Constants
- func CreateBackup(backup *backupservice.Backupresult) error
- func CreateRestore(restore *restoreservice.Restoreresult) error
- func DeleteBackup(backup *backupservice.Backupresult) (int64, error)
- func DeleteRestore(restore *restoreservice.Restoreresult) (int64, error)
- func GetBackup(backup *backupservice.Backupresult) error
- func GetRestore(restore *restoreservice.Restoreresult) error
- func MigrateDB() error
- func UpdateBackup(backup *backupservice.Backupresult) (int64, error)
- func UpdateRestore(restore *restoreservice.Restoreresult) (int64, error)
Constants ¶
View Source
const BackupDB = "/var/backup-handler/backup.db"
BackupDB defines path to the sqlite3 database file
Variables ¶
This section is empty.
Functions ¶
func CreateBackup ¶
func CreateBackup(backup *backupservice.Backupresult) error
CreateBackup adds backup request to database
func CreateRestore ¶
func CreateRestore(restore *restoreservice.Restoreresult) error
CreateRestore stores a new restore request
func DeleteBackup ¶
func DeleteBackup(backup *backupservice.Backupresult) (int64, error)
DeleteBackup marks a backup request deleted on completion or cancellation
func DeleteRestore ¶
func DeleteRestore(restore *restoreservice.Restoreresult) (int64, error)
DeleteRestore updates a restore object in the database
func GetBackup ¶
func GetBackup(backup *backupservice.Backupresult) error
GetBackup returns a specific backup objecy=t
func GetRestore ¶
func GetRestore(restore *restoreservice.Restoreresult) error
GetRestore returns a restore from the database
func UpdateBackup ¶
func UpdateBackup(backup *backupservice.Backupresult) (int64, error)
UpdateBackup updates the properties of a backup resource
func UpdateRestore ¶
func UpdateRestore(restore *restoreservice.Restoreresult) (int64, error)
UpdateRestore updates a restore object in the database
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.