blob: 31e07fdd88c85d9f8d737edd3b4186686d4356b3 [file] [log] [blame]
package apiversions
import (
"github.com/rackspace/gophercloud"
"github.com/rackspace/gophercloud/pagination"
)
func ListVersions(c *gophercloud.ServiceClient) pagination.Pager {
return pagination.NewPager(c, APIVersionsURL(c), func(r pagination.LastHTTPResponse) pagination.Page {
return APIVersionPage{pagination.SinglePageBase(r)}
})
}
func ListVersionResources(c *gophercloud.ServiceClient, v string) pagination.Pager {
return pagination.NewPager(c, APIInfoURL(c, v), func(r pagination.LastHTTPResponse) pagination.Page {
return APIVersionResourcePage{pagination.SinglePageBase(r)}
})
}