Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Regions = []Region{"aws-us-west-2", "aws-us-east-1"}
Regions simply lists the regions UC current runs in not sure these will live here forever but a starting place
Functions ¶
func GetAWSRegion ¶
GetAWSRegion returns the AWS name of the region and blank if region is not in AWS
Types ¶
type Region ¶
type Region string
Region represents a UserClouds region (eg. datacenter, ish)
func Current ¶
func Current() Region
Current returns the current region, or empty string TODO: error check against known list?
func FromAWSRegion ¶ added in v0.6.5
FromAWSRegion returns a region from a aws region string. e.g. us-east-1, us-west-2
Click to show internal directories.
Click to hide internal directories.