ehdou | c2b8dcd | 2017-01-11 06:01:00 +0200 | [diff] [blame] | 1 | package availabilityzones |
2 | |||||
3 | import ( | ||||
4 | "github.com/gophercloud/gophercloud" | ||||
5 | "github.com/gophercloud/gophercloud/pagination" | ||||
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 | } |