ec2

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingVolumeID = errors.New("Missing VolumeID")
)

Functions

func Init

func Init() (storagedriver.Driver, error)

Types

type Driver

type Driver struct {
	InstanceDocument *instanceIdentityDocument
	EC2Instance      *ec2.EC2
	DDTable          *dynamodb.Table
}

func (*Driver) AttachVolume added in v0.1.150418

func (driver *Driver) AttachVolume(runAsync bool, volumeID, instanceID string) (interface{}, error)

func (*Driver) CreateSnapshot added in v0.1.150418

func (driver *Driver) CreateSnapshot(runAsync bool, snapshotName, volumeID, description string) (interface{}, error)

func (*Driver) CreateVolume added in v0.1.150418

func (driver *Driver) CreateVolume(runAsync bool, volumeName string, volumeID string, snapshotID string, volumeType string, IOPS int64, size int64) (interface{}, error)

func (*Driver) DetachVolume added in v0.1.150418

func (driver *Driver) DetachVolume(runAsync bool, volumeID string, blank string) error

func (*Driver) GetBlockDeviceMapping

func (driver *Driver) GetBlockDeviceMapping() (interface{}, error)

func (*Driver) GetDeviceNextAvailable added in v0.1.150418

func (driver *Driver) GetDeviceNextAvailable() (string, error)

func (*Driver) GetInstance added in v0.1.150418

func (driver *Driver) GetInstance() (interface{}, error)

func (*Driver) GetSnapshot added in v0.1.150418

func (driver *Driver) GetSnapshot(volumeID, snapshotID, snapshotName string) (interface{}, error)

func (*Driver) GetVolume added in v0.1.150418

func (driver *Driver) GetVolume(volumeID, volumeName string) (interface{}, error)

func (*Driver) GetVolumeAttach added in v0.1.150418

func (driver *Driver) GetVolumeAttach(volumeID, instanceID string) (interface{}, error)

func (*Driver) RemoveSnapshot added in v0.1.150418

func (driver *Driver) RemoveSnapshot(snapshotID string) error

func (*Driver) RemoveVolume added in v0.1.150418

func (driver *Driver) RemoveVolume(volumeID string) error

Jump to

Keyboard shortcuts

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