packer-cn/builder/ucloud/common/consts.go

32 lines
773 B
Go
Raw Normal View History

2019-10-12 04:46:21 -04:00
package common
const (
// DefaultPasswordStr, DefaultPasswordNum and DefaultPasswordSpe are used to general default value of root password of UHost instance
DefaultPasswordNum = "012346789"
DefaultPasswordStr = "abcdefghijklmnopqrstuvwxyz"
DefaultPasswordSpe = "-_"
)
const (
2019-10-24 05:10:48 -04:00
InstanceStateRunning = "Running"
InstanceStateStopped = "Stopped"
2019-10-12 04:46:21 -04:00
ImageStateAvailable = "Available"
ImageStateUnavailable = "Unavailable"
2019-10-24 05:10:48 -04:00
BootDiskStateNormal = "Normal"
OsTypeWindows = "Windows"
SecurityGroupNonWeb = "recommend non web"
IpTypePrivate = "Private"
2019-10-12 04:46:21 -04:00
)
2019-10-18 02:52:20 -04:00
const (
2019-10-24 05:10:48 -04:00
DefaultCreateImageTimeout = 3600
2019-10-18 02:52:20 -04:00
)
2019-10-12 04:46:21 -04:00
var BootDiskTypeMap = NewStringConverter(map[string]string{
"cloud_ssd": "CLOUD_SSD",
"local_normal": "LOCAL_NORMAL",
"local_ssd": "LOCAL_SSD",
})