Jamie Hannaford | 17d2f87 | 2014-11-24 12:20:33 +0100 | [diff] [blame^] | 1 | package defsecrules |
2 | |||||
3 | import ( | ||||
4 | "github.com/rackspace/gophercloud" | ||||
5 | "github.com/rackspace/gophercloud/pagination" | ||||
6 | ) | ||||
7 | |||||
8 | // List will return a collection of default rules. | ||||
9 | func List(client *gophercloud.ServiceClient) pagination.Pager { | ||||
10 | createPage := func(r pagination.PageResult) pagination.Page { | ||||
11 | return DefaultRulePage{pagination.SinglePageBase(r)} | ||||
12 | } | ||||
13 | |||||
14 | return pagination.NewPager(client, rootURL(client), createPage) | ||||
15 | } |