Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DuplicityEngine ¶
type DuplicityEngine struct {
Orchestrator orchestrators.Orchestrator
Volume *volume.Volume
}
DuplicityEngine implements a backup engine with Duplicity
func (*DuplicityEngine) Backup ¶
func (d *DuplicityEngine) Backup() (err error)
Backup performs the backup of the passed volume
func (*DuplicityEngine) GetName ¶
func (*DuplicityEngine) GetName() string
GetName returns the engine name
type Engine ¶
Engine implements a backup engine interface
func GetEngine ¶
func GetEngine(o orchestrators.Orchestrator, v *volume.Volume) Engine
GetEngine returns the engine for passed volume
type RCloneEngine ¶
type RCloneEngine struct {
Orchestrator orchestrators.Orchestrator
Volume *volume.Volume
}
RCloneEngine implements a backup engine with RClone
func (*RCloneEngine) Backup ¶
func (r *RCloneEngine) Backup() (err error)
Backup performs the backup of the passed volume
func (*RCloneEngine) GetName ¶
func (*RCloneEngine) GetName() string
GetName returns the engine name
type ResticEngine ¶
type ResticEngine struct {
Orchestrator orchestrators.Orchestrator
Volume *volume.Volume
}
ResticEngine implements a backup engine with Restic
func (*ResticEngine) Backup ¶
func (r *ResticEngine) Backup() (err error)
Backup performs the backup of the passed volume
func (*ResticEngine) GetName ¶
func (*ResticEngine) GetName() string
GetName returns the engine name
type Snapshot ¶
type Snapshot struct {
Time time.Time `json:"time"`
Parent string `json:"parent"`
Tree string `json:"tree"`
Path []string `json:"path"`
Hostname string `json:"hostname"`
ID string `json:"id"`
ShortID string `json:"short_id"`
}
Snapshot is a struct returned by the function snapshots()
Click to show internal directories.
Click to hide internal directories.