readysite / pkg / platform / region.go
657 B
region.go
package platform

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

const (
	// North America
	NYC Region = "nyc" // New York
	SFO Region = "sfo" // San Francisco
	TOR Region = "tor" // Toronto

	// Europe
	LON Region = "lon" // London
	AMS Region = "ams" // Amsterdam
	FRA Region = "fra" // Frankfurt

	// Asia Pacific
	SGP Region = "sgp" // Singapore
	SYD Region = "syd" // Sydney
	BLR Region = "blr" // Bangalore
)

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