Documentation ¶
Index ¶
- Constants
- func Init(params map[string]string) (volume.VolumeDriver, error)
- type Driver
- func (d *Driver) Attach(volumeID string, attachOptions map[string]string) (string, error)
- func (d *Driver) Catalog(volumeID, path, depth string) (api.CatalogResponse, error)
- func (d *Driver) Create(locator *api.VolumeLocator, source *api.Source, spec *api.VolumeSpec) (string, error)
- func (d *Driver) Delete(volumeID string) error
- func (d *Driver) Detach(volumeID string, options map[string]string) error
- func (d *Driver) Format(volumeID string) error
- func (d *Driver) Inspect(volumeIDs []string) ([]*api.Volume, error)
- func (d *Driver) Mount(volumeID string, mountpath string, options map[string]string) error
- func (d *Driver) MountedAt(mountpath string) string
- func (d *Driver) Name() string
- func (d *Driver) Restore(volumeID string, snapID string) error
- func (d *Driver) Set(volumeID string, locator *api.VolumeLocator, spec *api.VolumeSpec) error
- func (d *Driver) Shutdown()
- func (d *Driver) Snapshot(volumeID string, readonly bool, locator *api.VolumeLocator, noRetry bool) (string, error)
- func (d *Driver) SnapshotGroup(groupID string, labels map[string]string, volumeIDs []string) (*api.GroupSnapCreateResponse, error)
- func (d *Driver) Status() [][2]string
- func (d *Driver) Type() api.DriverType
- func (d *Driver) Unmount(volumeID string, mountpath string, options map[string]string) error
- func (d *Driver) Version() (*api.StorageVersion, error)
- type Metadata
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 ¶
Types ¶
type Driver ¶
type Driver struct { volume.StatsDriver volume.StoreEnumerator volume.IODriver volume.QuiesceDriver volume.CredsDriver volume.CloudBackupDriver volume.CloudMigrateDriver // contains filtered or unexported fields }
Driver implements VolumeDriver interface
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) Set ¶
func (d *Driver) Set(volumeID string, locator *api.VolumeLocator, spec *api.VolumeSpec) error
func (*Driver) SnapshotGroup ¶
Click to show internal directories.
Click to hide internal directories.