ehdou | c2b8dcd | 2017-01-11 06:01:00 +0200 | [diff] [blame] | 1 | package availabilityzones |
| 2 | |
| 3 | import ( |
Krzysztof Szukiełojć | 3f41d08 | 2017-05-07 14:43:06 +0200 | [diff] [blame^] | 4 | "gerrit.mcp.mirantis.net/debian/gophercloud.git" |
Krzysztof Szukiełojć | 24a29ce | 2017-05-07 14:24:02 +0200 | [diff] [blame] | 5 | "gerrit.mcp.mirantis.net/debian/gophercloud.git/pagination" |
ehdou | c2b8dcd | 2017-01-11 06:01:00 +0200 | [diff] [blame] | 6 | ) |
| 7 | |
| 8 | // List will return the existing availability zones. |
| 9 | func List(client *gophercloud.ServiceClient) pagination.Pager { |
| 10 | return pagination.NewPager(client, listURL(client), func(r pagination.PageResult) pagination.Page { |
| 11 | return AvailabilityZonePage{pagination.SinglePageBase(r)} |
| 12 | }) |
| 13 | } |