Versions in this module Expand all Collapse all v0 v0.28.0 Jan 6, 2022 v0.27.0 Jan 6, 2022 v0.26.0 Jan 6, 2022 v0.24.3 Jan 6, 2022 v0.24.2 Jan 6, 2022 v0.24.1 Jan 6, 2022 Changes in this version + func ExtractVolumesInto(r pagination.Page, v interface{}) error + func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + func WaitForStatus(c *gophercloud.ServiceClient, id, status string, secs int) error + type Attachment struct + AttachedAt time.Time + AttachmentID string + Device string + HostName string + ID string + ServerID string + VolumeID string + func (r *Attachment) UnmarshalJSON(b []byte) error + type CreateOpts struct + AvailabilityZone string + ConsistencyGroupID string + Description string + ImageID string + Metadata map[string]string + Name string + Size int + SnapshotID string + SourceReplica string + SourceVolID string + VolumeType string + func (opts CreateOpts) ToVolumeCreateMap() (map[string]interface{}, error) + type CreateOptsBuilder interface + ToVolumeCreateMap func() (map[string]interface{}, error) + type CreateResult struct + func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) + func (r CreateResult) Extract() (*Volume, error) + func (r CreateResult) ExtractInto(v interface{}) error + type DeleteOpts struct + Cascade bool + func (opts DeleteOpts) ToVolumeDeleteQuery() (string, error) + type DeleteOptsBuilder interface + ToVolumeDeleteQuery func() (string, error) + type DeleteResult struct + func Delete(client *gophercloud.ServiceClient, id string, opts DeleteOptsBuilder) (r DeleteResult) + type GetResult struct + func Get(client *gophercloud.ServiceClient, id string) (r GetResult) + func (r GetResult) Extract() (*Volume, error) + func (r GetResult) ExtractInto(v interface{}) error + type ListOpts struct + AllTenants bool + Limit int + Marker string + Metadata map[string]string + Name string + Offset int + Sort string + Status string + TenantID string + func (opts ListOpts) ToVolumeListQuery() (string, error) + type ListOptsBuilder interface + ToVolumeListQuery func() (string, error) + type UpdateOpts struct + Description *string + Metadata map[string]string + Name *string + func (opts UpdateOpts) ToVolumeUpdateMap() (map[string]interface{}, error) + type UpdateOptsBuilder interface + ToVolumeUpdateMap func() (map[string]interface{}, error) + type UpdateResult struct + func Update(client *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult) + func (r UpdateResult) Extract() (*Volume, error) + func (r UpdateResult) ExtractInto(v interface{}) error + type Volume struct + Attachments []Attachment + AvailabilityZone string + Bootable string + ConsistencyGroupID string + CreatedAt time.Time + Description string + Encrypted bool + ID string + Metadata map[string]string + Multiattach bool + Name string + ReplicationStatus string + Size int + SnapshotID string + SourceVolID string + Status string + UpdatedAt time.Time + UserID string + VolumeType string + func ExtractVolumes(r pagination.Page) ([]Volume, error) + func (r *Volume) UnmarshalJSON(b []byte) error + type VolumePage struct + func (r VolumePage) IsEmpty() (bool, error) + func (r VolumePage) NextPageURL() (string, error)