Jon Perritt | df38cca | 2014-12-04 10:59:04 -0700 | [diff] [blame] | 1 | package apiversions |
2 | |||||
3 | import ( | ||||
4 | "github.com/rackspace/gophercloud" | ||||
5 | "github.com/rackspace/gophercloud/pagination" | ||||
6 | ) | ||||
7 | |||||
8 | // ListVersions lists all the Neutron API versions available to end-users | ||||
9 | func ListVersions(c *gophercloud.ServiceClient) pagination.Pager { | ||||
10 | return pagination.NewPager(c, apiVersionsURL(c), func(r pagination.PageResult) pagination.Page { | ||||
11 | return APIVersionPage{pagination.SinglePageBase(r)} | ||||
12 | }) | ||||
13 | } |