Jon Perritt | df38cca | 2014-12-04 10:59:04 -0700 | [diff] [blame] | 1 | package apiversions |
| 2 | |
| 3 | import ( |
Jon Perritt | 27249f4 | 2016-02-18 10:35:59 -0600 | [diff] [blame^] | 4 | "github.com/gophercloud/gophercloud" |
| 5 | "github.com/gophercloud/gophercloud/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 | } |