Documentation
¶
Index ¶
- Constants
- func Cluster() string
- func Env() string
- func GetIDCFromHost(ip string) string
- func GetRegionFromIDC(idc string) string
- func HostIP() string
- func HostIPV4() string
- func IDC() string
- func InCE() bool
- func IsPreview() bool
- func IsProduct() bool
- func IsTest() bool
- func PSM() string
- func Region() string
- func SetCluster(s string)
- func SetIDC(s string)
- func SetPSM(s string)
- func SetRegion(s string)
- func Stage() string
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 GetIDCFromHost ¶
func GetRegionFromIDC ¶
func SetCluster ¶
func SetCluster(s string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.