Versions in this module Expand all Collapse all v1 v1.3.0 Feb 14, 2023 Changes in this version + func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + func WaitForStatus(c *gophercloud.ServiceClient, id, status string, secs int) error + type CreateOpts struct + Description string + Force bool + Metadata map[string]string + Name string + VolumeID string + func (opts CreateOpts) ToSnapshotCreateMap() (map[string]interface{}, error) + type CreateOptsBuilder interface + ToSnapshotCreateMap func() (map[string]interface{}, error) + type CreateResult struct + func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) + func (r CreateResult) Extract() (*Snapshot, error) + type DeleteResult struct + func Delete(client *gophercloud.ServiceClient, id string) (r DeleteResult) + type GetResult struct + func Get(client *gophercloud.ServiceClient, id string) (r GetResult) + func (r GetResult) Extract() (*Snapshot, error) + type ListOpts struct + AllTenants bool + Limit int + Marker string + Name string + Offset int + Sort string + Status string + TenantID string + VolumeID string + func (opts ListOpts) ToSnapshotListQuery() (string, error) + type ListOptsBuilder interface + ToSnapshotListQuery func() (string, error) + type Snapshot struct + CreatedAt time.Time + Description string + ID string + Metadata map[string]string + Name string + Size int + Status string + UpdatedAt time.Time + VolumeID string + func ExtractSnapshots(r pagination.Page) ([]Snapshot, error) + func (r *Snapshot) UnmarshalJSON(b []byte) error + type SnapshotPage struct + func (r SnapshotPage) IsEmpty() (bool, error) + func (r SnapshotPage) NextPageURL() (string, error) + type UpdateMetadataOpts struct + Metadata map[string]interface{} + func (opts UpdateMetadataOpts) ToSnapshotUpdateMetadataMap() (map[string]interface{}, error) + type UpdateMetadataOptsBuilder interface + ToSnapshotUpdateMetadataMap func() (map[string]interface{}, error) + type UpdateMetadataResult struct + func UpdateMetadata(client *gophercloud.ServiceClient, id string, opts UpdateMetadataOptsBuilder) (r UpdateMetadataResult) + func (r UpdateMetadataResult) Extract() (*Snapshot, error) + func (r UpdateMetadataResult) ExtractMetadata() (map[string]interface{}, error) + type UpdateOpts struct + Description *string + Name *string + func (opts UpdateOpts) ToSnapshotUpdateMap() (map[string]interface{}, error) + type UpdateOptsBuilder interface + ToSnapshotUpdateMap func() (map[string]interface{}, error) + type UpdateResult struct + func Update(client *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult) + func (r UpdateResult) Extract() (*Snapshot, error)