blob: e649af8890383cc5ed52953661494b468f8a454d [file] [log] [blame]
ehdouc2b8dcd2017-01-11 06:01:00 +02001package availabilityzones
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"
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}