Commit 8cffc4e7 authored by duanjinfei's avatar duanjinfei

change vm status constant

parent 96818f0d
package common package common
const ( const (
Stopped = "stopped" Stopped = "stopped"
Running = "running" Running = "running"
Ens18 = "ens18" Ens18 = "ens18"
Ipv4 = "ipv4" Ipv4 = "ipv4"
Ipv6 = "ipv6" Ipv6 = "ipv6"
SuccessCode = 200 SuccessCode = 200
LocalHost = "127.0.0.1" LocalHost = "127.0.0.1"
DefaultSshPort = "22" DefaultSshPort = "22"
DefaultVncPort = "5901" DefaultVncPort = "5901"
NpsReqFailedStatus int64 = 0 NpsReqFailedStatus int64 = 0
SplitSupportType = "-" SplitSupportType = "-"
VmSupportConnectVnc = 1 VmSupportConnectVnc = 1
VmSupportConnectSsh = 2 VmSupportConnectSsh = 2
VmSupportConnectAll = 3 VmSupportConnectAll = 3
VmStatusEnabled, VmStatusDisable, VmStatusReboot, VmStatusDelete uint8 = 1, 2, 3, 4 VmStatusEnabled uint8 = 1
VmStatusDisable uint8 = 2
VmStatusReboot uint8 = 3
VmStatusDelete uint8 = 4
) )
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment