-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPoolPatch.enums.gen.go
49 lines (38 loc) · 1.03 KB
/
PoolPatch.enums.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// This is a generated file. DO NOT EDIT manually.
package go_xen_client
//AfterApplyGuidance: after_apply_guidance enum type
type AfterApplyGuidance int
const(
AfterApplyGuidanceRestartHVM AfterApplyGuidance = iota //This patch requires HVM guests to be restarted once applied.
AfterApplyGuidanceRestartPV //This patch requires PV guests to be restarted once applied.
AfterApplyGuidanceRestartHost //This patch requires the host to be restarted once applied.
AfterApplyGuidanceRestartXAPI //This patch requires XAPI to be restarted once applied.
)
func (e AfterApplyGuidance) String() string {
switch e {
case 0:
return "restartHVM"
case 1:
return "restartPV"
case 2:
return "restartHost"
case 3:
return "restartXAPI"
default:
return ""
}
}
func ToAfterApplyGuidance(strValue string) AfterApplyGuidance {
switch strValue {
case "restartHVM":
return 0
case "restartPV":
return 1
case "restartHost":
return 2
case "restartXAPI":
return 3
default:
return -1
}
}