region

package
v0.120.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 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 western US, aka us-west-1.
	USWest1
	// USEast4 is a sauce labs region in eastern US, aka us-east-4.
	USEast4
	// EUCentral1 is a sauce labs region in the EU, aka eu-central-1.
	EUCentral1
	// Staging is a sauce labs internal pre-production environment.
	Staging
)

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) AppBaseURL added in v0.23.0

func (r Region) AppBaseURL() string

AppBaseURL returns the Aapp base URL for the region.

func (Region) String

func (r Region) String() string

func (Region) WebDriverBaseURL added in v0.99.0

func (r Region) WebDriverBaseURL() string

WebDriverBaseURL returns the webdriver base URL for the region.

Jump to

Keyboard shortcuts

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