Jon Perritt | df38cca | 2014-12-04 10:59:04 -0700 | [diff] [blame] | 1 | package apiversions |
| 2 | |
| 3 | import ( |
Krzysztof Szukiełojć | 3f41d08 | 2017-05-07 14:43:06 +0200 | [diff] [blame] | 4 | "gerrit.mcp.mirantis.net/debian/gophercloud.git" |
Krzysztof Szukiełojć | 24a29ce | 2017-05-07 14:24:02 +0200 | [diff] [blame] | 5 | "gerrit.mcp.mirantis.net/debian/gophercloud.git/pagination" |
Jon Perritt | df38cca | 2014-12-04 10:59:04 -0700 | [diff] [blame] | 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 | } |