32 lines
773 B
Go
32 lines
773 B
Go
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 (
|
|
InstanceStateRunning = "Running"
|
|
InstanceStateStopped = "Stopped"
|
|
|
|
ImageStateAvailable = "Available"
|
|
ImageStateUnavailable = "Unavailable"
|
|
|
|
BootDiskStateNormal = "Normal"
|
|
OsTypeWindows = "Windows"
|
|
SecurityGroupNonWeb = "recommend non web"
|
|
IpTypePrivate = "Private"
|
|
)
|
|
|
|
const (
|
|
DefaultCreateImageTimeout = 3600
|
|
)
|
|
|
|
var BootDiskTypeMap = NewStringConverter(map[string]string{
|
|
"cloud_ssd": "CLOUD_SSD",
|
|
"local_normal": "LOCAL_NORMAL",
|
|
"local_ssd": "LOCAL_SSD",
|
|
})
|