convoydriver

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OPT_MOUNT_POINT           = "MountPoint"
	OPT_SIZE                  = "Size"
	OPT_VOLUME_UUID           = "VolumeUUID"
	OPT_VOLUME_NAME           = "VolumeName"
	OPT_VOLUME_CREATED_TIME   = "VolumeCreatedAt"
	OPT_SNAPSHOT_NAME         = "SnapshotName"
	OPT_SNAPSHOT_CREATED_TIME = "SnapshotCreatedAt"
	OPT_FILESYSTEM            = "FileSystem"
	OPT_BACKUP_URL            = "BackupURL"
	OPT_REFERENCE_ONLY        = "ReferenceOnly"
)

Variables

This section is empty.

Functions

func Register

func Register(name string, initFunc InitFunc) error

Types

type BackupOperations

type BackupOperations interface {
	Name() string
	CreateBackup(snapshotID, volumeID, destURL string, opts map[string]string) (string, error)
	DeleteBackup(backupURL string) error
	GetBackupInfo(backupURL string) (map[string]string, error)
	ListBackup(destURL string, opts map[string]string) (map[string]map[string]string, error)
}

type ConvoyDriver

type ConvoyDriver interface {
	Name() string
	Info() (map[string]string, error)

	VolumeOps() (VolumeOperations, error)
	SnapshotOps() (SnapshotOperations, error)
	BackupOps() (BackupOperations, error)
}

func GetDriver

func GetDriver(name, root string, config map[string]string) (ConvoyDriver, error)

type InitFunc

type InitFunc func(root string, config map[string]string) (ConvoyDriver, error)

type SnapshotOperations

type SnapshotOperations interface {
	Name() string
	CreateSnapshot(id, volumeID string) error
	DeleteSnapshot(id, volumeID string) error
	GetSnapshotInfo(id, volumeID string) (map[string]string, error)
	ListSnapshot(opts map[string]string) (map[string]map[string]string, error)
}

type VolumeOperations

type VolumeOperations interface {
	Name() string
	CreateVolume(id string, opts map[string]string) error
	DeleteVolume(id string, opts map[string]string) error
	MountVolume(id string, opts map[string]string) (string, error)
	UmountVolume(id string) error
	MountPoint(id string) (string, error)
	GetVolumeInfo(id string) (map[string]string, error)
	ListVolume(opts map[string]string) (map[string]map[string]string, error)
}

Jump to

Keyboard shortcuts

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