region.go

34 lines
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
package platform

// Region represents a geographic location for cloud resources.
// Use these constants instead of provider-specific region codes.
type Region string

// Supported cloud regions, grouped by continent.
const (
	// NYC represents the New York region.
	NYC Region = "nyc"
	// SFO represents the San Francisco region.
	SFO Region = "sfo"
	// TOR represents the Toronto region.
	TOR Region = "tor"

	// LON represents the London region.
	LON Region = "lon"
	// AMS represents the Amsterdam region.
	AMS Region = "ams"
	// FRA represents the Frankfurt region.
	FRA Region = "fra"

	// SGP represents the Singapore region.
	SGP Region = "sgp"
	// SYD represents the Sydney region.
	SYD Region = "syd"
	// BLR represents the Bangalore region.
	BLR Region = "blr"
)

// AllRegions returns all supported regions.
func AllRegions() []Region {
	return []Region{NYC, SFO, TOR, LON, AMS, FRA, SGP, SYD, BLR}
}