region

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 2 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?

Jump to

Keyboard shortcuts

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