forked from Code-Hex/vz
-
Notifications
You must be signed in to change notification settings - Fork 1
/
virtualmachinestate_string.go
32 lines (26 loc) · 1.32 KB
/
virtualmachinestate_string.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
// Code generated by "stringer -type=VirtualMachineState"; DO NOT EDIT.
package vz
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[VirtualMachineStateStopped-0]
_ = x[VirtualMachineStateRunning-1]
_ = x[VirtualMachineStatePaused-2]
_ = x[VirtualMachineStateError-3]
_ = x[VirtualMachineStateStarting-4]
_ = x[VirtualMachineStatePausing-5]
_ = x[VirtualMachineStateResuming-6]
_ = x[VirtualMachineStateStopping-7]
_ = x[VirtualMachineStateSaving-8]
_ = x[VirtualMachineStateRestoring-9]
}
const _VirtualMachineState_name = "VirtualMachineStateStoppedVirtualMachineStateRunningVirtualMachineStatePausedVirtualMachineStateErrorVirtualMachineStateStartingVirtualMachineStatePausingVirtualMachineStateResumingVirtualMachineStateStoppingVirtualMachineStateSavingVirtualMachineStateRestoring"
var _VirtualMachineState_index = [...]uint16{0, 26, 52, 77, 101, 128, 154, 181, 208, 233, 261}
func (i VirtualMachineState) String() string {
if i < 0 || i >= VirtualMachineState(len(_VirtualMachineState_index)-1) {
return "VirtualMachineState(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _VirtualMachineState_name[_VirtualMachineState_index[i]:_VirtualMachineState_index[i+1]]
}