...
1 package guestrequest
2
3
4
5 type RequestType string
6 type ResourceType string
7
8
9 const (
10 RequestTypeAdd RequestType = "Add"
11 RequestTypeRemove RequestType = "Remove"
12 RequestTypePreAdd RequestType = "PreAdd"
13 RequestTypeUpdate RequestType = "Update"
14 )
15
16 type SignalValueWCOW string
17
18 const (
19 SignalValueWCOWCtrlC SignalValueWCOW = "CtrlC"
20 SignalValueWCOWCtrlBreak SignalValueWCOW = "CtrlBreak"
21 SignalValueWCOWCtrlClose SignalValueWCOW = "CtrlClose"
22 SignalValueWCOWCtrlLogOff SignalValueWCOW = "CtrlLogOff"
23 SignalValueWCOWCtrlShutdown SignalValueWCOW = "CtrlShutdown"
24 )
25
26
27 type ModificationRequest struct {
28 RequestType RequestType `json:"RequestType,omitempty"`
29 ResourceType ResourceType `json:"ResourceType,omitempty"`
30 Settings interface{} `json:"Settings,omitempty"`
31 }
32
33 type NetworkModifyRequest struct {
34 AdapterId string `json:"AdapterId,omitempty"`
35 RequestType RequestType `json:"RequestType,omitempty"`
36 Settings interface{} `json:"Settings,omitempty"`
37 }
38
39 type RS4NetworkModifyRequest struct {
40 AdapterInstanceId string `json:"AdapterInstanceId,omitempty"`
41 RequestType RequestType `json:"RequestType,omitempty"`
42 Settings interface{} `json:"Settings,omitempty"`
43 }
44
45 var (
46
47
48
49
50 ScsiControllerGuids = []string{
51 "df6d0690-79e5-55b6-a5ec-c1e2f77f580a",
52 "0110f83b-de10-5172-a266-78bca56bf50a",
53 "b5d2d8d4-3a75-51bf-945b-3444dc6b8579",
54 "305891a9-b251-5dfe-91a2-c25d9212275b",
55 }
56 )
57
View as plain text