Documentation
¶
Overview ¶
Package locations embeds the real Google Cloud regions and zones (FR-CORE-021) so every service validates locations the same way. It also records each region's auto-mode VPC subnet range (SRS 1.2, compute).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLocation ¶
IsLocation reports whether loc is a region or a zone.
func ZoneRegion ¶
ZoneRegion returns the region of a zone.
Types ¶
type Region ¶
type Region struct {
Name string
// Description is the human-readable location ("Iowa").
Description string
// AutoCIDR is the subnet range an auto-mode VPC network creates in the
// region (e.g. 10.128.0.0/20 in us-central1).
AutoCIDR string
// contains filtered or unexported fields
}
Region is one GCP region.