-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVGPUType.enums.gen.go
49 lines (38 loc) · 936 Bytes
/
VGPUType.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
//VgpuTypeImplementation: vgpu_type_implementation enum type
type VgpuTypeImplementation int
const(
VgpuTypeImplementationPassthrough VgpuTypeImplementation = iota //Pass through an entire physical GPU to a guest
VgpuTypeImplementationNvidia //vGPU using NVIDIA hardware
VgpuTypeImplementationGvtG //vGPU using Intel GVT-g
VgpuTypeImplementationMxgpu //vGPU using AMD MxGPU
)
func (e VgpuTypeImplementation) String() string {
switch e {
case 0:
return "passthrough"
case 1:
return "nvidia"
case 2:
return "gvt_g"
case 3:
return "mxgpu"
default:
return ""
}
}
func ToVgpuTypeImplementation(strValue string) VgpuTypeImplementation {
switch strValue {
case "passthrough":
return 0
case "nvidia":
return 1
case "gvt_g":
return 2
case "mxgpu":
return 3
default:
return -1
}
}