region

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Region

type Region uint

Region represents the sauce labs region.

const (
	// None is an undefined sauce labs region.
	None Region = iota
	// USWest1 is a sauce labs region in the US, aka us-west-1.
	USWest1
	// EUCentral1 is a sauce labs region in the EU, aka eu-central-1.
	EUCentral1
)

func FromString

func FromString(s string) Region

FromString converts the given string to the corresponding Region. Returns None if the string did not match any Region.

func (Region) APIBaseURL

func (r Region) APIBaseURL() string

APIBaseURL returns the API base URL for the region.

func (Region) String

func (r Region) String() string

Jump to

Keyboard shortcuts

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