blob: 89bb214f93875c863fc488741a3aa88da8ddf736 [file] [log] [blame]
Simon Murraya9d5de42016-11-03 15:06:44 +00001package hypervisors
2
3import (
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02004 "gerrit.mcp.mirantis.net/debian/gophercloud.git"
Krzysztof Szukiełojć24a29ce2017-05-07 14:24:02 +02005 "gerrit.mcp.mirantis.net/debian/gophercloud.git/pagination"
Simon Murraya9d5de42016-11-03 15:06:44 +00006)
7
8// List makes a request against the API to list hypervisors.
9func List(client *gophercloud.ServiceClient) pagination.Pager {
10 return pagination.NewPager(client, hypervisorsListDetailURL(client), func(r pagination.PageResult) pagination.Page {
11 return HypervisorPage{pagination.SinglePageBase(r)}
12 })
13}
14
15
16func AggregateList(client *gophercloud.ServiceClient) pagination.Pager {
17 return pagination.NewPager(client, aggregatesListURL(client), func(r pagination.PageResult) pagination.Page {
18 return AggregatePage{pagination.SinglePageBase(r)}
19 })
20}
21