github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/availabilityzones/requests.go (about) 1 package availabilityzones 2 3 import ( 4 "github.com/huaweicloud/golangsdk" 5 "github.com/huaweicloud/golangsdk/pagination" 6 ) 7 8 // List will return the existing availability zones. 9 func List(client *golangsdk.ServiceClient) pagination.Pager { 10 return pagination.NewPager(client, listURL(client), func(r pagination.PageResult) pagination.Page { 11 return AvailabilityZonePage{pagination.SinglePageBase(r)} 12 }) 13 } 14 15 // ListDetail will return the existing availability zones with detailed information. 16 func ListDetail(client *golangsdk.ServiceClient) pagination.Pager { 17 return pagination.NewPager(client, listDetailURL(client), func(r pagination.PageResult) pagination.Page { 18 return AvailabilityZonePage{pagination.SinglePageBase(r)} 19 }) 20 }