2015-10-25 04:01:15 +01:00
|
|
|
package common
|
|
|
|
|
|
|
|
// Region represents ECS region
|
|
|
|
type Region string
|
|
|
|
|
|
|
|
// Constants of region definition
|
|
|
|
const (
|
|
|
|
Hangzhou = Region("cn-hangzhou")
|
|
|
|
Qingdao = Region("cn-qingdao")
|
|
|
|
Beijing = Region("cn-beijing")
|
|
|
|
Hongkong = Region("cn-hongkong")
|
|
|
|
Shenzhen = Region("cn-shenzhen")
|
|
|
|
USWest1 = Region("us-west-1")
|
2016-10-26 03:37:58 +02:00
|
|
|
USEast1 = Region("us-east-1")
|
2015-10-25 04:01:15 +01:00
|
|
|
APSouthEast1 = Region("ap-southeast-1")
|
|
|
|
Shanghai = Region("cn-shanghai")
|
|
|
|
)
|
|
|
|
|
2016-10-26 03:37:58 +02:00
|
|
|
var ValidRegions = []Region{Hangzhou, Qingdao, Beijing, Shenzhen, Hongkong, Shanghai, USWest1, USEast1, APSouthEast1}
|