Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *gophercloud.ServiceClient) pagination.Pager
List will return the existing availability zones.
Types ¶
type AvailabilityZone ¶
type AvailabilityZone struct {
// The availability zone ID.
ID string `json:"id"`
// The name of the availability zone.
Name string `json:"name"`
// The date and time stamp when the availability zone was created.
CreatedAt time.Time `json:"-"`
// The date and time stamp when the availability zone was updated.
UpdatedAt time.Time `json:"-"`
}
AvailabilityZone contains all the information associated with an OpenStack AvailabilityZone.
func ExtractAvailabilityZones ¶
func ExtractAvailabilityZones(r pagination.Page) ([]AvailabilityZone, error)
ExtractAvailabilityZones will get the AvailabilityZone objects out of the shareTypeAccessResult object.
func (*AvailabilityZone) UnmarshalJSON ¶
func (r *AvailabilityZone) UnmarshalJSON(b []byte) error
type AvailabilityZonePage ¶
type AvailabilityZonePage struct {
pagination.SinglePageBase
}
ListResult contains the response body and error from a List request.
Click to show internal directories.
Click to hide internal directories.