backup

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CURRENT = "current"
View Source
const INCOMPLETE = "incomplete"

Variables

This section is empty.

Functions

func Resume

func Resume(h backup_host.Host) error

Types

type Backup

type Backup interface {
	Path() string
	Name() string
	Delete() error
	IsDir() (bool, error)
	ValidName() bool
}

func All

func All(h backup_host.Host) ([]Backup, error)

func ByName

func ByName(h backup_host.Host, name string) Backup

func ByTime

func ByTime(h backup_host.Host, t time.Time) Backup

func KeepBackups

func KeepBackups(h backup_host.Host) ([]Backup, error)

func OldBackups

func OldBackups(h backup_host.Host) ([]Backup, error)

type BackupByName

type BackupByName []Backup

func (BackupByName) Len

func (v BackupByName) Len() int

func (BackupByName) Less

func (v BackupByName) Less(i, j int) bool

func (BackupByName) Swap

func (v BackupByName) Swap(i, j int)

Jump to

Keyboard shortcuts

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