Documentation ¶
Index ¶
- Constants
- func HandleBackup(cfg *config.Config, flags BackupFlags) (backupStatus, error)
- func HandleDecrypt(cfg *config.Config, dataPath string, noEncrypt bool) (encryptStatus, error)
- func HandleEncrypt(cfg *config.Config, dataPath string, noEncrypt bool) (encryptStatus, error)
- func HandleHash(cfg *config.Config, dataPath string, skipCompare bool) (*hashResult, error)
- func HandleRestore(cfg *config.Config, flags RestoreFlags) (restoreStatus, error)
- type BackupFlags
- type HashStatus
- type RestoreFlags
Constants ¶
View Source
const ( BACKUP_NO_CHANGE backupStatus = iota BACKUP_USER_CANCEL BACKUP_NO_ACTIONS BACKUP_SUCCESS )
View Source
const ( ENCRYPT_SKIP encryptStatus = iota ENCRYPT_CONTINUE ENCRYPT_USER_CANCEL )
View Source
const ( RESTORE_USER_CANCEL restoreStatus = iota RESTORE_NO_ACTIONS RESTORE_SUCCESS )
Variables ¶
This section is empty.
Functions ¶
func HandleBackup ¶
func HandleBackup(cfg *config.Config, flags BackupFlags) (backupStatus, error)
func HandleDecrypt ¶
func HandleEncrypt ¶
func HandleHash ¶
func HandleRestore ¶
func HandleRestore(cfg *config.Config, flags RestoreFlags) (restoreStatus, error)
Types ¶
type BackupFlags ¶
Click to show internal directories.
Click to hide internal directories.