gophercloud: github.com/rackspace/gophercloud/rackspace/blockstorage/v1/volumes Index | Files

package volumes

import "github.com/rackspace/gophercloud/rackspace/blockstorage/v1/volumes"

Package volumes provides information and interaction with the volume API resource for the Rackspace Block Storage service.

Index

Package Files

delegate.go doc.go results.go

func Delete Uses

func Delete(client *gophercloud.ServiceClient, id string) os.DeleteResult

Delete will delete the existing Volume with the provided ID.

func ExtractVolumes Uses

func ExtractVolumes(page pagination.Page) ([]Volume, error)

ExtractVolumes extracts and returns Volumes. It is used while iterating over a volumes.List call.

func List Uses

func List(client *gophercloud.ServiceClient) pagination.Pager

List returns volumes optionally limited by the conditions provided in ListOpts.

type CreateOpts Uses

type CreateOpts struct {
    os.CreateOpts
}

func (CreateOpts) ToVolumeCreateMap Uses

func (opts CreateOpts) ToVolumeCreateMap() (map[string]interface{}, error)

type CreateResult Uses

type CreateResult struct {
    os.CreateResult
}

CreateResult represents the result of a create operation

func Create Uses

func Create(client *gophercloud.ServiceClient, opts os.CreateOptsBuilder) CreateResult

Create will create a new Volume based on the values in CreateOpts. To extract the Volume object from the response, call the Extract method on the CreateResult.

func (CreateResult) Extract Uses

func (r CreateResult) Extract() (*Volume, error)

Extract will get the Volume object out of the CreateResult object.

type GetResult Uses

type GetResult struct {
    os.GetResult
}

GetResult represents the result of a get operation

func Get Uses

func Get(client *gophercloud.ServiceClient, id string) GetResult

Get retrieves the Volume with the provided ID. To extract the Volume object from the response, call the Extract method on the GetResult.

func (GetResult) Extract Uses

func (r GetResult) Extract() (*Volume, error)

Extract will get the Volume object out of the GetResult object.

type UpdateOpts Uses

type UpdateOpts struct {
    // OPTIONAL
    Name string
    // OPTIONAL
    Description string
}

UpdateOpts contain options for updating an existing Volume. This object is passed to the volumes.Update function. For more information about the parameters, see the Volume object.

func (UpdateOpts) ToVolumeUpdateMap Uses

func (opts UpdateOpts) ToVolumeUpdateMap() (map[string]interface{}, error)

ToVolumeUpdateMap assembles a request body based on the contents of an UpdateOpts.

type UpdateResult Uses

type UpdateResult struct {
    os.UpdateResult
}

UpdateResult represents the result of an update operation

func Update Uses

func Update(client *gophercloud.ServiceClient, id string, opts os.UpdateOptsBuilder) UpdateResult

Update will update the Volume with provided information. To extract the updated Volume from the response, call the Extract method on the UpdateResult.

func (UpdateResult) Extract Uses

func (r UpdateResult) Extract() (*Volume, error)

Extract will get the Volume object out of the UpdateResult object.

type Volume Uses

type Volume os.Volume

Volume wraps an Openstack volume

Package volumes imports 5 packages (graph) and is imported by 37 packages. Updated 2016-07-23. Refresh now. Tools for package owners.