blob: 36f32a3825a6106c0abbe450aa118a141e7588fa [file] [log] [blame]
ehdouc2b8dcd2017-01-11 06:01:00 +02001package availabilityzones
2
3import (
4 "github.com/gophercloud/gophercloud"
Krzysztof Szukiełojć24a29ce2017-05-07 14:24:02 +02005 "gerrit.mcp.mirantis.net/debian/gophercloud.git/pagination"
ehdouc2b8dcd2017-01-11 06:01:00 +02006)
7
8// List will return the existing availability zones.
9func 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}