blob: a9b8f30d17ba81afd44922491e4772ebe32b8f5e [file] [log] [blame]
Jamie Hannaford924c09d2014-11-19 12:05:38 +01001package secgroups
2
3import (
4 "github.com/rackspace/gophercloud"
5 "github.com/rackspace/gophercloud/pagination"
6)
7
8func 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}