storagedriver

package
v0.1.150418 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDriverInstanceDiscovery = errors.New("Driver Instance discovery failed")
)

Functions

func GetDrivers

func GetDrivers(storageDrivers string) (map[string]Driver, error)

func Register

func Register(name string, initFunc InitFunc) error

Types

type BlockDevice

type BlockDevice struct {
	ProviderName string
	InstanceID   string
	VolumeID     string
	DeviceName   string
	Region       string
	Status       string
}

type Driver

type Driver interface {
	GetBlockDeviceMapping() (interface{}, error)
	GetInstance() (interface{}, error)
	GetVolume(string, string) (interface{}, error)
	GetVolumeAttach(string, string) (interface{}, error)
	GetSnapshot(string, string, string) (interface{}, error)
	CreateSnapshot(bool, string, string, string) (interface{}, error)
	RemoveSnapshot(string) error
	CreateVolume(bool, string, string, string, string, int64, int64) (interface{}, error)
	RemoveVolume(string) error
	GetDeviceNextAvailable() (string, error)
	AttachVolume(bool, string, string) (interface{}, error)
	DetachVolume(bool, string, string) error
}

type InitFunc

type InitFunc func() (Driver, error)

type Instance added in v0.1.150418

type Instance struct {
	ProviderName string
	InstanceID   string
	Region       string
	Name         string
}

type Snapshot added in v0.1.150418

type Snapshot struct {
	Name        string
	VolumeID    string
	SnapshotID  string
	VolumeSize  string
	StartTime   string
	Description string
	Status      string
}

type Volume added in v0.1.150418

type Volume struct {
	Name             string
	VolumeID         string
	AvailabilityZone string
	Status           string
	VolumeType       string
	IOPS             int64
	Size             string
	Attachments      []*VolumeAttachment
}

type VolumeAttachment added in v0.1.150418

type VolumeAttachment struct {
	VolumeID   string
	InstanceID string
	DeviceName string
	Status     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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