| "github.com/rackspace/gophercloud" |
| "github.com/rackspace/gophercloud/pagination" |
| // ListOpts filters the Tenants that are returned by the List call. |
| // Marker is the ID of the last Tenant on the previous page. |
| Marker string `q:"marker"` |
| // Limit specifies the page size. |
| // List enumerates the Tenants to which the current token has access. |
| func List(client *gophercloud.ServiceClient, opts *ListOpts) pagination.Pager { |
| createPage := func(r pagination.LastHTTPResponse) pagination.Page { |
| return TenantPage{pagination.LinkedPageBase{LastHTTPResponse: r}} |
| q, err := gophercloud.BuildQueryString(opts) |
| return pagination.Pager{Err: err} |
| return pagination.NewPager(client, url, createPage) |