regions

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegionLoginStatus added in v0.24.4

func GetRegionLoginStatus() map[Region]bool

func SaveRegionLoginStatus added in v0.24.4

func SaveRegionLoginStatus() error

func SetRegionLoginStatus added in v0.24.4

func SetRegionLoginStatus(region Region)

Types

type Region

type Region int

Region is region's type

const (
	Invalid Region = iota
	ChinaNorth
	USWest
	ChinaEast
	ChinaTDS1
)

API server regions

func GetLoginedRegions added in v0.24.4

func GetLoginedRegions(availableRegions []Region) []Region

Only return available regions

func Parse added in v0.24.4

func Parse(region string) Region

func (Region) Description added in v0.12.0

func (r Region) Description() string

Description is region's readable description

func (Region) EnvString added in v0.24.4

func (r Region) EnvString() string

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