func ExtractVolumes(page pagination.Page) ([]Volume, error) {
	var response struct {
		Volumes []Volume `json:"volumes"`
	}
	err := mapstructure.Decode(page.(os.ListResult).Body, &response)
	return response.Volumes, err
}
ExtractVolumes extracts and returns Volumes. It is used while iterating over a volumes.List call.
package volumes
import (
	os "github.com/rackspace/gophercloud/openstack/blockstorage/v1/volumes"
	"github.com/rackspace/gophercloud/pagination"
	"github.com/mitchellh/mapstructure"
)
type Volume os.Volume
type CreateResult struct {
	os.CreateResult
}
type GetResult struct {
	os.GetResult
}
type UpdateResult struct {
	os.UpdateResult
}
func commonExtract(resp interface{}, err error) (*Volume, error) {
	if err != nil {
		return nil, err
	}
	var respStruct struct {
		Volume *Volume `json:"volume"`
	}
	err = mapstructure.Decode(resp, &respStruct)
	return respStruct.Volume, err
}
func (r GetResult) Extract() (*Volume, error) {
	return commonExtract(r.Body, r.Err)
}
func (r CreateResult) Extract() (*Volume, error) {
	return commonExtract(r.Body, r.Err)
}
func (r UpdateResult) Extract() (*Volume, error) {
	return commonExtract(r.Body, r.Err)
}