blob: 6cdd0cfbdcff05f28075d5d4f39b81a7a24de75a [file] [log] [blame]
Ash Wilson94af38d2014-10-10 14:07:02 -04001package tenants
2
3import (
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.
10func 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.
15func List(client *gophercloud.ServiceClient, opts *os.ListOpts) pagination.Pager {
16 return os.List(client, opts)
17}