Jamie Hannaford | 8195446 | 2015-02-13 09:45:27 +0100 | [diff] [blame] | 1 | package flavors |
| 2 | |
| 3 | import ( |
| 4 | "github.com/rackspace/gophercloud" |
| 5 | os "github.com/rackspace/gophercloud/openstack/db/v1/flavors" |
| 6 | "github.com/rackspace/gophercloud/pagination" |
| 7 | ) |
| 8 | |
Jamie Hannaford | b0d267b | 2015-02-19 11:59:53 +0100 | [diff] [blame^] | 9 | // List will list all available flavors. |
Jamie Hannaford | 8195446 | 2015-02-13 09:45:27 +0100 | [diff] [blame] | 10 | func List(client *gophercloud.ServiceClient) pagination.Pager { |
| 11 | return os.List(client) |
| 12 | } |
| 13 | |
Jamie Hannaford | b0d267b | 2015-02-19 11:59:53 +0100 | [diff] [blame^] | 14 | // Get retrieves the details for a particular flavor. |
Jamie Hannaford | 8195446 | 2015-02-13 09:45:27 +0100 | [diff] [blame] | 15 | func Get(client *gophercloud.ServiceClient, flavorID string) os.GetResult { |
| 16 | return os.Get(client, flavorID) |
| 17 | } |