scaleio

package
v0.2.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "XtremIO"

Variables

View Source
var (
	ErrMissingVolumeID         = errors.New("Missing VolumeID")
	ErrMultipleVolumesReturned = errors.New("Multiple Volumes returned")
	ErrNoVolumesReturned       = errors.New("No Volumes returned")
	ErrLocalVolumeMaps         = errors.New("Getting local volume mounts")
)

Functions

func Init

func Init(cfg *config.Config) (storage.Driver, error)

Types

type Driver

type Driver struct {
	Client          *xtio.Client
	Initiator       xtio.Initiator
	VolumesSig      string
	LunMapsSig      string
	VolumesByNAA    map[string]xtio.Volume
	UseDeviceMapper bool
	UseMultipath    bool
	Config          *config.Config
}

func (*Driver) AttachVolume

func (driver *Driver) AttachVolume(runAsync bool, volumeID, instanceID string) ([]*storage.VolumeAttachment, error)

func (*Driver) CopySnapshot

func (driver *Driver) CopySnapshot(runAsync bool, volumeID, snapshotID, snapshotName, destinationSnapshotName, destinationRegion string) (*storage.Snapshot, error)

func (*Driver) CreateSnapshot

func (driver *Driver) CreateSnapshot(notUsed bool, snapshotName, volumeID, description string) ([]*storage.Snapshot, error)

func (*Driver) CreateVolume

func (driver *Driver) CreateVolume(
	notUsed bool,
	volumeName, volumeID, snapshotID, NUvolumeType string,
	NUIOPS, size int64, NUavailabilityZone string) (*storage.Volume, error)

func (*Driver) DetachVolume

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

func (*Driver) GetDeviceNextAvailable

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

func (*Driver) GetInstance

func (driver *Driver) GetInstance() (*storage.Instance, error)

func (*Driver) GetSnapshot

func (driver *Driver) GetSnapshot(volumeID, snapshotID, snapshotName string) ([]*storage.Snapshot, error)

GetSnapshot returns snapshots from a volume or a specific snapshot

func (*Driver) GetVolume

func (driver *Driver) GetVolume(volumeID, volumeName string) ([]*storage.Volume, error)

func (*Driver) GetVolumeAttach

func (driver *Driver) GetVolumeAttach(volumeID, instanceID string) ([]*storage.VolumeAttachment, error)

func (*Driver) GetVolumeMapping

func (driver *Driver) GetVolumeMapping() ([]*storage.BlockDevice, error)

func (*Driver) RemoveSnapshot

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

func (*Driver) RemoveVolume

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