blob: 66337a544f8a5bb41f89b68262fdd52be48d65ff [file] [log] [blame]
Jamie Hannaford17d2f872014-11-24 12:20:33 +01001package defsecrules
2
3import (
4 "github.com/rackspace/gophercloud"
5 "github.com/rackspace/gophercloud/pagination"
6)
7
8// List will return a collection of default rules.
9func 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}