blob: 8ef6f591d57c276c681363d7ed7bfdb8116d6fbb [file] [log] [blame]
Ash Wilson92457e92014-10-20 15:18:23 -04001package flavors
2
3import (
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.
10func 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.
15func 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.
20func ExtractFlavors(page pagination.Page) ([]os.Flavor, error) {
21 return os.ExtractFlavors(page)
22}