region

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 3 Imported by: 0

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

func GetAWSRegion(r Region) string

GetAWSRegion returns the AWS name of the region and blank if region is not in AWS

func IsValid

func IsValid(region Region) bool

IsValid returns true if the region is a valid region

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

func FromAWSRegion(awsRegion string) Region

FromAWSRegion returns a region from a aws region string. e.g. us-east-1, us-west-2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL