blob: 31ef9e42b5d0810cc2cf996092eac28c4bb4d23c [file] [log] [blame]
Ash Wilson0482daf2014-10-22 11:24:40 -04001package keypairs
Ash Wilsonad612f62014-10-22 14:04:37 -04002
3import (
4 "github.com/rackspace/gophercloud"
5 "github.com/rackspace/gophercloud/pagination"
6)
7
8// List returns a Pager that allows you to iterate over a collection of KeyPairs.
9func List(client *gophercloud.ServiceClient) pagination.Pager {
10 return pagination.NewPager(client, listURL(client), func(r pagination.PageResult) pagination.Page {
11 return KeyPairPage{pagination.SinglePageBase(r)}
12 })
13}