Ash Wilson | 92457e9 | 2014-10-20 15:18:23 -0400 | [diff] [blame] | 1 | package images |
Ash Wilson | 3194703 | 2014-10-20 18:14:00 -0400 | [diff] [blame^] | 2 | |
| 3 | import ( |
| 4 | "github.com/rackspace/gophercloud" |
| 5 | os "github.com/rackspace/gophercloud/openstack/compute/v2/images" |
| 6 | "github.com/rackspace/gophercloud/pagination" |
| 7 | ) |
| 8 | |
| 9 | // ListDetail enumerates the available server images. |
| 10 | func ListDetail(client *gophercloud.ServiceClient, opts os.ListOptsBuilder) pagination.Pager { |
| 11 | return os.ListDetail(client, opts) |
| 12 | } |
| 13 | |
| 14 | // Get acquires additional detail about a specific image by ID. |
| 15 | func Get(client *gophercloud.ServiceClient, id string) os.GetResult { |
| 16 | return os.Get(client, id) |
| 17 | } |
| 18 | |
| 19 | // ExtractImages interprets a page as a collection of server images. |
| 20 | func ExtractImages(page pagination.Page) ([]os.Image, error) { |
| 21 | return os.ExtractImages(page) |
| 22 | } |