blob: 18e1f315af94ed0bea30c9a437d84dd1e2e46b6a [file] [log] [blame]
Ash Wilson92457e92014-10-20 15:18:23 -04001package images
Ash Wilson31947032014-10-20 18:14:00 -04002
3import (
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.
10func 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.
15func 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.
20func ExtractImages(page pagination.Page) ([]os.Image, error) {
21 return os.ExtractImages(page)
22}