Ash Wilson | 92457e9 | 2014-10-20 15:18:23 -0400 | [diff] [blame^] | 1 | package flavors |
| 2 | |
| 3 | import ( |
| 4 | "github.com/rackspace/gophercloud" |
| 5 | os "github.com/rackspace/gophercloud/openstack/compute/v2/flavors" |
| 6 | "github.com/rackspace/gophercloud/pagination" |
| 7 | ) |
| 8 | |
| 9 | // List enumerates the server images available to your account. |
| 10 | func List(client *gophercloud.ServiceClient, opts os.ListOptsBuilder) pagination.Pager { |
| 11 | return os.List(client, opts) |
| 12 | } |
| 13 | |
| 14 | // Get returns details about a single flavor, identity by ID. |
| 15 | func Get(client *gophercloud.ServiceClient, id string) os.GetResult { |
| 16 | return os.Get(client, id) |
| 17 | } |
| 18 | |
| 19 | // ExtractFlavors interprets a page of List results as Flavors. |
| 20 | func ExtractFlavors(page pagination.Page) ([]os.Flavor, error) { |
| 21 | return os.ExtractFlavors(page) |
| 22 | } |