engines

package
v0.24.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2016 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplicityEngine

type DuplicityEngine struct {
	Handler *handler.Conplicity
	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

func GetEngine(c *handler.Conplicity, v *volume.Volume) Engine

GetEngine returns the engine for passed volume

type RCloneEngine

type RCloneEngine struct {
	Handler *handler.Conplicity
	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

Jump to

Keyboard shortcuts

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