Jamie Hannaford | 0ca076c | 2014-10-30 13:12:35 +0100 | [diff] [blame^] | 1 | package roles |
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 RolePage{pagination.SinglePageBase(r)} | ||||
11 | } | ||||
12 | return pagination.NewPager(client, rootURL(client), createPage) | ||||
13 | } |