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

25 lines
709 B
Go
Raw Normal View History

2019-06-13 03:16:49 -04:00
package uhost
const (
// defaultPasswordStr, defaultPasswordNum and defaultPasswordSpe are used to general default value of root password of UHost instance
defaultPasswordNum = "012346789"
defaultPasswordStr = "abcdefghijklmnopqrstuvwxyz"
defaultPasswordSpe = "-_"
)
2019-06-13 08:17:08 -04:00
const (
osTypeWindows = "Windows"
securityGroupNonWeb = "recommend non web"
instanceStateRunning = "Running"
instanceStateStopped = "Stopped"
bootDiskStateInitializing = "Initializing"
bootDiskStateNormal = "Normal"
imageStateAvailable = "Available"
)
2019-06-13 03:16:49 -04:00
var bootDiskTypeMap = map[string]string{
"cloud_ssd": "CLOUD_SSD",
"local_normal": "LOCAL_NORMAL",
"local_ssd": "LOCAL_SSD",
}