Documentation ¶
Index ¶
- Constants
- type AuthOptions
- type Capabilities
- type CinderConfig
- type Driver
- func (d *Driver) CreateSnapshot(req *pb.CreateVolumeSnapshotOpts) (*model.VolumeSnapshotSpec, error)
- func (d *Driver) CreateVolume(req *pb.CreateVolumeOpts) (*model.VolumeSpec, error)
- func (d *Driver) CreateVolumeGroup(opt *pb.CreateVolumeGroupOpts) (*model.VolumeGroupSpec, error)
- func (d *Driver) DeleteSnapshot(req *pb.DeleteVolumeSnapshotOpts) error
- func (d *Driver) DeleteVolume(req *pb.DeleteVolumeOpts) error
- func (d *Driver) DeleteVolumeGroup(opt *pb.DeleteVolumeGroupOpts) error
- func (d *Driver) ExtendVolume(req *pb.ExtendVolumeOpts) (*model.VolumeSpec, error)
- func (d *Driver) InitializeConnection(req *pb.CreateVolumeAttachmentOpts) (*model.ConnectionInfo, error)
- func (d *Driver) InitializeSnapshotConnection(opt *pb.CreateSnapshotAttachmentOpts) (*model.ConnectionInfo, error)
- func (d *Driver) ListPools() ([]*model.StoragePoolSpec, error)
- func (d *Driver) PullSnapshot(snapID string) (*model.VolumeSnapshotSpec, error)
- func (d *Driver) PullVolume(volID string) (*model.VolumeSpec, error)
- func (d *Driver) Setup() error
- func (d *Driver) TerminateConnection(req *pb.DeleteVolumeAttachmentOpts) error
- func (d *Driver) TerminateSnapshotConnection(opt *pb.DeleteSnapshotAttachmentOpts) error
- func (d *Driver) Unset() error
- func (d *Driver) UpdateVolumeGroup(opt *pb.UpdateVolumeGroupOpts) (*model.VolumeGroupSpec, error)
- type ListPoolOpts
- type PoolArray
- type StoragePool
Constants ¶
View Source
const ( KCinderVolumeId = "cinderVolumeId" KCinderSnapId = "cinderSnapId" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthOptions ¶
type AuthOptions struct { NoAuth bool `yaml:"noAuth,omitempty"` CinderEndpoint string `yaml:"cinderEndpoint,omitempty"` IdentityEndpoint string `yaml:"endpoint,omitempty"` DomainID string `yaml:"domainId,omitempty"` DomainName string `yaml:"domainName,omitempty"` Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` PwdEncrypter string `yaml:"PwdEncrypter,omitempty"` EnableEncrypted bool `yaml:"EnableEncrypted,omitempty"` TenantID string `yaml:"tenantId,omitempty"` TenantName string `yaml:"tenantName,omitempty"` }
AuthOptions
type Capabilities ¶
type CinderConfig ¶
type CinderConfig struct { AuthOptions `yaml:"authOptions"` Pool map[string]PoolProperties `yaml:"pool,flow"` }
CinderConfig
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is a struct of Cinder backend, which can be called to manage block storage service defined in gophercloud.
func (*Driver) CreateSnapshot ¶
func (d *Driver) CreateSnapshot(req *pb.CreateVolumeSnapshotOpts) (*model.VolumeSnapshotSpec, error)
CreateSnapshot
func (*Driver) CreateVolume ¶
func (d *Driver) CreateVolume(req *pb.CreateVolumeOpts) (*model.VolumeSpec, error)
CreateVolume
func (*Driver) CreateVolumeGroup ¶
func (d *Driver) CreateVolumeGroup(opt *pb.CreateVolumeGroupOpts) (*model.VolumeGroupSpec, error)
func (*Driver) DeleteSnapshot ¶
func (d *Driver) DeleteSnapshot(req *pb.DeleteVolumeSnapshotOpts) error
DeleteSnapshot
func (*Driver) DeleteVolume ¶
func (d *Driver) DeleteVolume(req *pb.DeleteVolumeOpts) error
DeleteVolume
func (*Driver) DeleteVolumeGroup ¶
func (d *Driver) DeleteVolumeGroup(opt *pb.DeleteVolumeGroupOpts) error
func (*Driver) ExtendVolume ¶
func (d *Driver) ExtendVolume(req *pb.ExtendVolumeOpts) (*model.VolumeSpec, error)
ExtendVolume ...
func (*Driver) InitializeConnection ¶
func (d *Driver) InitializeConnection(req *pb.CreateVolumeAttachmentOpts) (*model.ConnectionInfo, error)
InitializeConnection
func (*Driver) InitializeSnapshotConnection ¶
func (d *Driver) InitializeSnapshotConnection(opt *pb.CreateSnapshotAttachmentOpts) (*model.ConnectionInfo, error)
func (*Driver) PullSnapshot ¶
func (d *Driver) PullSnapshot(snapID string) (*model.VolumeSnapshotSpec, error)
PullSnapshot
func (*Driver) PullVolume ¶
func (d *Driver) PullVolume(volID string) (*model.VolumeSpec, error)
PullVolume
func (*Driver) TerminateConnection ¶
func (d *Driver) TerminateConnection(req *pb.DeleteVolumeAttachmentOpts) error
TerminateConnection
func (*Driver) TerminateSnapshotConnection ¶
func (d *Driver) TerminateSnapshotConnection(opt *pb.DeleteSnapshotAttachmentOpts) error
func (*Driver) UpdateVolumeGroup ¶
func (d *Driver) UpdateVolumeGroup(opt *pb.UpdateVolumeGroupOpts) (*model.VolumeGroupSpec, error)
type ListPoolOpts ¶
type ListPoolOpts struct { // ID of the tenant to look up storage pools for. TenantID string `q:"tenant_id"` // Whether to list extended details. Detail bool `q:"detail"` // Volume_Type of the StoragePool VolumeType string `q:"volume_type"` }
ListPoolOpts
func (ListPoolOpts) ToStoragePoolsListQuery ¶
func (opts ListPoolOpts) ToStoragePoolsListQuery() (string, error)
type PoolArray ¶
type PoolArray struct {
Pools []StoragePool `json:"pools"`
}
Struct of Pools listed by volumeType
type StoragePool ¶
type StoragePool struct { Name string `json:"name"` Capabilities Capabilities `json:"capabilities"` }
func ExtractStoragePools ¶
func ExtractStoragePools(p pagination.Page) ([]StoragePool, error)
Click to show internal directories.
Click to hide internal directories.