blob: 89bb214f93875c863fc488741a3aa88da8ddf736 [file] [log] [blame]
package hypervisors
import (
"gerrit.mcp.mirantis.net/debian/gophercloud.git"
"gerrit.mcp.mirantis.net/debian/gophercloud.git/pagination"
)
// List makes a request against the API to list hypervisors.
func List(client *gophercloud.ServiceClient) pagination.Pager {
return pagination.NewPager(client, hypervisorsListDetailURL(client), func(r pagination.PageResult) pagination.Page {
return HypervisorPage{pagination.SinglePageBase(r)}
})
}
func AggregateList(client *gophercloud.ServiceClient) pagination.Pager {
return pagination.NewPager(client, aggregatesListURL(client), func(r pagination.PageResult) pagination.Page {
return AggregatePage{pagination.SinglePageBase(r)}
})
}