Versions in this module Expand all Collapse all v1 v1.0.20 Dec 19, 2019 v1.0.19 Nov 11, 2019 v1.0.18 Sep 14, 2019 v1.0.17 Aug 13, 2019 Changes in this version + func ExtractVolumesInto(r pagination.Page, v interface{}) error + func IDFromName(client *gophercloud.ServiceClient, name string) (string, error) + func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + func ListBrief(client *gophercloud.ServiceClient, opts ListBriefOptsBuilder) 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 BaseType struct + Allocated int + InUse int + Limit int + Reserved int + type CreateOpts struct + AvailabilityZone string + ConsistencyGroupID string + Description string + ImageID string + Metadata map[string]string + Multiattach *bool + Name string + SchedulerHints map[string]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 + func (r CreateResult) ExtractIntoQuotaSet(to interface{}) error + func (r CreateResult) ExtractQuotaSet() (*QuotaSetInfo, error) + type DeleteMetadataKeyResult struct + func DeleteMetadataKey(client *gophercloud.ServiceClient, id, key string) (r DeleteMetadataKeyResult) + 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) (r DeleteResult) + func DeleteCascade(client *gophercloud.ServiceClient, id string, opts DeleteOptsBuilder) (r DeleteResult) + type ExportVolumesOpts struct + ContainerFormat string + DiskFormat string + Force bool + ImageName string + OsType string + func (opts ExportVolumesOpts) ToExportVolumesMap() (map[string]interface{}, error) + type ExportVolumesOptsBuilder interface + ToExportVolumesMap func() (map[string]interface{}, error) + type ExportVolumesResult struct + func ExportVolumes(client *gophercloud.ServiceClient, id string, opts ExportVolumesOptsBuilder) (r ExportVolumesResult) + func (r ExportVolumesResult) Extract() (*OsVolumeUploadImage, error) + type ExtendSizeOpts struct + NewSize int + func (opts ExtendSizeOpts) ToVolumeExtendSizeMap() (map[string]interface{}, error) + type ExtendSizeOptsBuilder interface + ToVolumeExtendSizeMap func() (map[string]interface{}, error) + type ExtendSizeResult struct + func ExtendSize(client *gophercloud.ServiceClient, id string, opts ExtendSizeOptsBuilder) (r ExtendSizeResult) + type ExtraSpec struct + AvailabilityZone string + SoldOutAvailabilityZone string + VolumeBackendName string + 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 + func (r GetResult) ExtractIntoQuotaSet(to interface{}) error + func (r GetResult) ExtractQuotaSet() (*QuotaSetInfo, error) + type ListBriefOpts struct + AvailabilityZone string + Limit int + Marker string + Metadata map[string]string + Name string + Offset int + SortDir string + SortKey string + Status string + func (opts ListBriefOpts) ToVolumeListBriefQuery() (string, error) + type ListBriefOptsBuilder interface + ToVolumeListBriefQuery func() (string, error) + type ListOpts struct + AllTenants bool + AvailabilityZone string + Maker string + Metadata map[string]string + Name string + SortDir string + SortKey string + Status string + TenantID string + func (opts ListOpts) ToVolumeListQuery() (string, error) + type ListOptsBuilder interface + ToVolumeListQuery func() (string, error) + type MetaOpts struct + Meta map[string]string + func (opts MetaOpts) ToVolumeMetaMap() (map[string]interface{}, error) + type MetaOptsBuilder interface + ToVolumeMetaMap func() (map[string]interface{}, error) + type MetadataOpts struct + Metadata map[string]string + func (opts MetadataOpts) ToVolumeMetadataMap() (map[string]interface{}, error) + type MetadataOptsBuilder interface + ToVolumeMetadataMap func() (map[string]interface{}, error) + type MetadataResult struct + func CreateMetadata(client *gophercloud.ServiceClient, id string, opts MetadataOptsBuilder) (r MetadataResult) + func GetMetadata(client *gophercloud.ServiceClient, id string) (r MetadataResult) + func GetMetadataKey(client *gophercloud.ServiceClient, id, key string) (r MetadataResult) + func UpdateMetadata(client *gophercloud.ServiceClient, id string, opts MetadataOptsBuilder) (r MetadataResult) + func UpdateMetadataKey(client *gophercloud.ServiceClient, id, key string, opts MetaOptsBuilder) (r MetadataResult) + func (r MetadataResult) Extract() (*Volume, error) + func (r MetadataResult) ExtractInto(v interface{}) error + func (r MetadataResult) ExtractIntoQuotaSet(to interface{}) error + func (r MetadataResult) ExtractMeta() (map[string]interface{}, error) + func (r MetadataResult) ExtractMetadata() (map[string]interface{}, error) + func (r MetadataResult) ExtractQuotaSet() (*QuotaSetInfo, error) + type OsVolumeUploadImage struct + ContainerFormat string + DiskFormat string + DisplayDescription string + ID string + ImageID string + ImageName string + Size int + Status string + UpdatedAt string + VolumeType VolumeType + type QuotaSet struct + BackupGigabytes map[string]int + Backups map[string]int + Code string + Gigabytes map[string]int + GigabytesType map[string]int + Id string + Message string + Snapshots map[string]int + SnapshotsType map[string]int + Volumes map[string]int + VolumesType map[string]int + type QuotaSetInfo struct + QuoSet map[string]interface{} + func GetQuotaSet(client *gophercloud.ServiceClient, projectId string) (*QuotaSetInfo, error) + type SetBootableOpts struct + Bootable bool + func (opts SetBootableOpts) ToVolumeSetBootableMap() (map[string]interface{}, error) + type SetBootableOptsBuilder interface + ToVolumeSetBootableMap func() (map[string]interface{}, error) + type SetBootableResult struct + func SetBootable(client *gophercloud.ServiceClient, id string, opts SetBootableOptsBuilder) (r SetBootableResult) + type SetReadOnlyOpts struct + ReadOnly bool + func (opts SetReadOnlyOpts) ToVolumeSetReadOnlyMap() (map[string]interface{}, error) + type SetReadOnlyOptsBuilder interface + ToVolumeSetReadOnlyMap func() (map[string]interface{}, error) + type SetReadOnlyResult struct + func SetReadOnly(client *gophercloud.ServiceClient, id string, opts SetReadOnlyOptsBuilder) (r SetReadOnlyResult) + type UpdateOpts struct + Description string + DisplayDescription string + DisplayName 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 + func (r UpdateResult) ExtractIntoQuotaSet(to interface{}) error + func (r UpdateResult) ExtractQuotaSet() (*QuotaSetInfo, error) + type Volume struct + Attachments []Attachment + AvailabilityZone string + Bootable string + ConsistencyGroupID string + CreatedAt time.Time + Description string + Encrypted bool + HostAttr string + ID string + Links []map[string]string + Metadata map[string]string + MigAttrNameID string + MigAttrStat string + Multiattach bool + Name string + RepAttrDriverData string + RepAttrExtendedStatus string + ReplicationStatus string + Shareable bool + Size int + SnapshotID string + SourceVolID string + Status string + TenantAttr string + UpdatedAt time.Time + UserID string + VolumeImageMetadata map[string]string + VolumeType string + func ExtractVolumes(r pagination.Page) ([]Volume, error) + func (r *Volume) UnmarshalJSON(b []byte) error + type VolumeLinks struct + Href string + Rel string + type VolumeList struct + ID string + Links []VolumeLinks + Name string + type VolumeListBrief struct + VolumeLinks []VolumeLinks + VolumeList []VolumeList + func ExtractVolumesBrief(r pagination.Page) (VolumeListBrief, error) + type VolumeListPage struct + func (r VolumeListPage) IsEmpty() (bool, error) + type VolumePage struct + func (r VolumePage) IsEmpty() (bool, error) + type VolumeType struct + CreatedAt string + Deleted bool + DeletedAt string + Description string + ExtraSpecs ExtraSpec + ID string + IsPublic bool + Name string + UpdatedAt string