env

package
v0.0.0-...-0823b07 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknownRegion = "-"
	R_CN          = "CN"
	R_SG          = "SG"
	R_US          = "US"

	UnknownIDC = "-"
	DC_ZJK     = "zjk" // ALI ZJK
	DC_SEA     = "sea" // Vultr Seattle
	DC_SG      = "sg"  // Vultr Singapore
)

Variables

This section is empty.

Functions

func Cluster

func Cluster() string

func Env

func Env() string

func GetIDCFromHost

func GetIDCFromHost(ip string) string

func GetRegionFromIDC

func GetRegionFromIDC(idc string) string

func HostIP

func HostIP() string

func HostIPV4

func HostIPV4() string

func IDC

func IDC() string

func InCE

func InCE() bool

InCE in container engine

func IsPreview

func IsPreview() bool

func IsProduct

func IsProduct() bool

func IsTest

func IsTest() bool

func PSM

func PSM() string

func Region

func Region() string

func SetCluster

func SetCluster(s string)

func SetIDC

func SetIDC(s string)

func SetPSM

func SetPSM(s string)

func SetRegion

func SetRegion(s string)

func Stage

func Stage() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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