| Jamie Hannaford | 2a13024 | 2014-10-28 11:19:46 +0100 | [diff] [blame] | 1 | package users |
| Jamie Hannaford | 929bd00 | 2014-10-29 11:14:25 +0100 | [diff] [blame^] | 2 | |
| 3 | import ( | ||||
| 4 | "github.com/rackspace/gophercloud" | ||||
| 5 | "github.com/rackspace/gophercloud/pagination" | ||||
| 6 | ) | ||||
| 7 | |||||
| 8 | func List(client *gophercloud.ServiceClient) pagination.Pager { | ||||
| 9 | createPage := func(r pagination.PageResult) pagination.Page { | ||||
| 10 | return UserPage{pagination.SinglePageBase(r)} | ||||
| 11 | } | ||||
| 12 | |||||
| 13 | return pagination.NewPager(client, rootURL(client), createPage) | ||||
| 14 | } | ||||