aws

package
v0.0.0-...-585c797 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Name     = "aws"
	Type     = volume.Block
	AwsDBKey = "OpenStorageAWSKey"
)

Variables

This section is empty.

Functions

func Init

Init aws volume driver metadata.

Types

type Driver

type Driver struct {
	*volume.DefaultEnumerator
	*device.SingleLetter
	// contains filtered or unexported fields
}

Driver implements VolumeDriver interface

func (*Driver) Alerts

func (d *Driver) Alerts(volumeID api.VolumeID) (api.Alerts, error)

func (*Driver) Attach

func (d *Driver) Attach(volumeID api.VolumeID) (path string, err error)

func (*Driver) Create

func (d *Driver) Create(
	locator api.VolumeLocator,
	opt *api.CreateOptions,
	spec *api.VolumeSpec) (api.VolumeID, error)

Create aws volume from spec.

func (*Driver) Delete

func (d *Driver) Delete(volumeID api.VolumeID) error

func (*Driver) Detach

func (d *Driver) Detach(volumeID api.VolumeID) error

func (*Driver) Enumerate

func (d *Driver) Enumerate(locator api.VolumeLocator, labels api.Labels) ([]api.Volume, error)

func (*Driver) Format

func (d *Driver) Format(volumeID api.VolumeID) error

func (*Driver) Inspect

func (d *Driver) Inspect(volumeIDs []api.VolumeID) ([]api.Volume, error)

func (*Driver) Mount

func (d *Driver) Mount(volumeID api.VolumeID, mountpath string) error

func (*Driver) Shutdown

func (d *Driver) Shutdown()

func (*Driver) SnapEnumerate

func (d *Driver) SnapEnumerate(volIds []api.VolumeID, labels api.Labels) ([]api.Volume, error)

func (*Driver) Snapshot

func (d *Driver) Snapshot(volumeID api.VolumeID, readonly bool, locator api.VolumeLocator) (api.VolumeID, error)

func (*Driver) Stats

func (d *Driver) Stats(volumeID api.VolumeID) (api.Stats, error)

func (*Driver) Status

func (v *Driver) Status() [][2]string

Status diagnostic information

func (*Driver) String

func (d *Driver) String() string

String is a description of this driver.

func (*Driver) Type

func (d *Driver) Type() volume.DriverType

Type returns aws as a Block driver.

func (*Driver) Unmount

func (d *Driver) Unmount(volumeID api.VolumeID, mountpath string) error

type Metadata

type Metadata struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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