aws

package
v8.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name of the driver
	Name = "aws"
	// Type of the driver
	Type = api.DriverType_DRIVER_TYPE_BLOCK
	// AwsDBKey for openstorage
	AwsDBKey = "OpenStorageAWSKey"
)

Variables

This section is empty.

Functions

func Init

func Init(params map[string]string) (volume.VolumeDriver, error)

Init aws volume driver metadata.

Types

type Driver

Driver implements VolumeDriver interface

func (*Driver) Attach

func (d *Driver) Attach(
	volumeID string,
	attachOptions map[string]string,
) (string, error)

func (*Driver) Catalog

func (d *Driver) Catalog(volumeID, path, depth string) (api.CatalogResponse, error)

func (*Driver) Create

func (d *Driver) Create(
	locator *api.VolumeLocator,
	source *api.Source,
	spec *api.VolumeSpec,
) (string, error)

Create creates a new volume

func (*Driver) Delete

func (d *Driver) Delete(volumeID string) error

func (*Driver) Detach

func (d *Driver) Detach(volumeID string, options map[string]string) error

func (*Driver) Format

func (d *Driver) Format(volumeID string) error

func (*Driver) Inspect

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

Inspect insepcts a volume

func (*Driver) Mount

func (d *Driver) Mount(volumeID string, mountpath string, options map[string]string) error

func (*Driver) MountedAt

func (d *Driver) MountedAt(mountpath string) string

func (*Driver) Name

func (d *Driver) Name() string

Name returns the name of the driver

func (*Driver) Restore

func (d *Driver) Restore(volumeID string, snapID string) error

func (*Driver) Set

func (d *Driver) Set(volumeID string, locator *api.VolumeLocator, spec *api.VolumeSpec) error

func (*Driver) Shutdown

func (d *Driver) Shutdown()

func (*Driver) Snapshot

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

func (*Driver) SnapshotGroup

func (d *Driver) SnapshotGroup(groupID string, labels map[string]string, volumeIDs []string) (*api.GroupSnapCreateResponse, error)

func (*Driver) Status

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

Status returns the current status

func (*Driver) Type

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

Type returns the type of the driver

func (*Driver) Unmount

func (d *Driver) Unmount(volumeID string, mountpath string, options map[string]string) error

func (*Driver) Version

func (d *Driver) Version() (*api.StorageVersion, error)

Version returns version information about the driver

type Metadata

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

Metadata for the driver

Jump to

Keyboard shortcuts

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