service

package
v0.0.0-...-b56a76f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2018 License: BSD-2-Clause Imports: 10 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL