Jamie Hannaford | 8c072a3 | 2014-10-16 14:33:32 +0200 | [diff] [blame^] | 1 | package tenants |
| 2 | |
| 3 | import ( |
| 4 | "github.com/rackspace/gophercloud" |
| 5 | os "github.com/rackspace/gophercloud/openstack/identity/v2/tenants" |
| 6 | "github.com/rackspace/gophercloud/pagination" |
| 7 | ) |
| 8 | |
| 9 | // ExtractTenants interprets a page of List results as a more usable slice of Tenant structs. |
| 10 | func ExtractTenants(page pagination.Page) ([]os.Tenant, error) { |
| 11 | return os.ExtractTenants(page) |
| 12 | } |
| 13 | |
| 14 | // List enumerates the tenants to which the current token grants access. |
| 15 | func List(client *gophercloud.ServiceClient, opts *os.ListOpts) pagination.Pager { |
| 16 | return os.List(client, opts) |
| 17 | } |