forked from Wifx/gonetworkmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nmdevicestate_string.go
49 lines (43 loc) · 1.69 KB
/
nmdevicestate_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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Code generated by "stringer -type=NmDeviceState"; DO NOT EDIT.
package gonetworkmanager
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[NmDeviceStateUnknown-0]
_ = x[NmDeviceStateUnmanaged-10]
_ = x[NmDeviceStateUnavailable-20]
_ = x[NmDeviceStateDisconnected-30]
_ = x[NmDeviceStatePrepare-40]
_ = x[NmDeviceStateConfig-50]
_ = x[NmDeviceStateNeedAuth-60]
_ = x[NmDeviceStateIpConfig-70]
_ = x[NmDeviceStateIpCheck-80]
_ = x[NmDeviceStateSecondaries-90]
_ = x[NmDeviceStateActivated-100]
_ = x[NmDeviceStateDeactivating-110]
_ = x[NmDeviceStateFailed-120]
}
const _NmDeviceState_name = "NmDeviceStateUnknownNmDeviceStateUnmanagedNmDeviceStateUnavailableNmDeviceStateDisconnectedNmDeviceStatePrepareNmDeviceStateConfigNmDeviceStateNeedAuthNmDeviceStateIpConfigNmDeviceStateIpCheckNmDeviceStateSecondariesNmDeviceStateActivatedNmDeviceStateDeactivatingNmDeviceStateFailed"
var _NmDeviceState_map = map[NmDeviceState]string{
0: _NmDeviceState_name[0:20],
10: _NmDeviceState_name[20:42],
20: _NmDeviceState_name[42:66],
30: _NmDeviceState_name[66:91],
40: _NmDeviceState_name[91:111],
50: _NmDeviceState_name[111:130],
60: _NmDeviceState_name[130:151],
70: _NmDeviceState_name[151:172],
80: _NmDeviceState_name[172:192],
90: _NmDeviceState_name[192:216],
100: _NmDeviceState_name[216:238],
110: _NmDeviceState_name[238:263],
120: _NmDeviceState_name[263:282],
}
func (i NmDeviceState) String() string {
if str, ok := _NmDeviceState_map[i]; ok {
return str
}
return "NmDeviceState(" + strconv.FormatInt(int64(i), 10) + ")"
}