Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBackup ¶
func CreateBackup(name string) backup_dto.Backup
func CreateHost ¶
func CreateHost(name string) backup_dto.Host
func NewBackupService ¶
func NewBackupService(rootdirectory string) *backupService
func NewBackupServiceMock ¶
func NewBackupServiceMock() *backupServiceMock
Types ¶
type BackupService ¶
type BackupService interface { GetHost(host string) (backup_dto.Host, error) ListHosts() ([]backup_dto.Host, error) ListBackups(host backup_dto.Host) ([]backup_dto.Backup, error) ListOldBackups(host backup_dto.Host) ([]backup_dto.Backup, error) ListKeepBackups(host backup_dto.Host) ([]backup_dto.Backup, error) GetLatestBackup(host backup_dto.Host) (backup_dto.Backup, error) Cleanup(host backup_dto.Host) error Resume(host backup_dto.Host) error }
Click to show internal directories.
Click to hide internal directories.