engines

package
v1.0.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 License: Apache-2.0 Imports: 13 Imported by: 3

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

type Engine interface {
	Backup() error
	GetName() string
}

Engine implements a backup engine interface

func GetEngine

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()

Jump to

Keyboard shortcuts

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