Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAWSRegion ¶
func GetAWSRegion(r MachineRegion) string
GetAWSRegion returns the AWS name of the region and blank if region is not in AWS
Types ¶
type DataRegion ¶ added in v0.8.5
type DataRegion string
DataRegion represents a region for where user data should be hosted
func DataRegionsForUniverse ¶ added in v1.0.0
func DataRegionsForUniverse(u universe.Universe) []DataRegion
DataRegionsForUniverse returns the list of regions for a given universe
func (DataRegion) Validate ¶ added in v0.8.5
func (r DataRegion) Validate() error
Validate implements Validateable
type MachineRegion ¶ added in v0.8.5
type MachineRegion string
MachineRegion represents a region for our systems or located
func Current ¶
func Current() MachineRegion
Current returns the current region, or empty string TODO: error check against known list?
func FromAWSRegion ¶ added in v0.6.5
func FromAWSRegion(awsRegion string) MachineRegion
FromAWSRegion returns a region from a aws region string. e.g. us-east-1, us-west-2
func MachineRegionsForUniverse ¶ added in v1.0.0
func MachineRegionsForUniverse(u universe.Universe) []MachineRegion
MachineRegionsForUniverse returns the list of regions for a given universe
func (MachineRegion) Validate ¶ added in v0.8.5
func (r MachineRegion) Validate() error
Validate implements Validateable
Click to show internal directories.
Click to hide internal directories.