blob: 3a66fcce04ca546e3079c38591243fd180af82b8 [file] [log] [blame]
package hypervisors
import (
"github.com/gophercloud/gophercloud"
"github.com/gophercloud/gophercloud/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)}
})
}