Ash Wilson | 94af38d | 2014-10-10 14:07:02 -0400 | [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 | } |