Jamie Hannaford | 924c09d | 2014-11-19 12:05:38 +0100 | [diff] [blame^] | 1 | package secgroups |
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 SecurityGroupPage{pagination.SinglePageBase(r)} | ||||
11 | } | ||||
12 | |||||
13 | return pagination.NewPager(client, rootURL(client), createPage) | ||||
14 | } |