region

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 5 Imported by: 0

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

func IsValid

func IsValid(region MachineRegion, u universe.Universe) bool

IsValid returns true if the region is a valid region for a given universe

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

Jump to

Keyboard shortcuts

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