backup

package
v0.0.0-...-295c363 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBackupCtor

func RegisterBackupCtor(bType string, fun ctorFun) error

func UnregisterBackupCtor

func UnregisterBackupCtor(cType string)

Types

type BackupDriver

type BackupDriver interface {
	SetUp() error
	Backup(backup *BackupSpec, volumeFile *os.File) error
	Restore(backup *BackupSpec, backupId string, volFile *os.File) error
	Delete(backup *BackupSpec) error
	CleanUp() error
}

func NewBackup

func NewBackup(backupDriverName string) (BackupDriver, error)

type BackupSpec

type BackupSpec struct {
	Id       string
	Name     string
	Metadata map[string]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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