forked from Wifx/gonetworkmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnmdevicestate_string.go
30 lines (25 loc) · 1.06 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
// Code generated by "stringer -type=NmDeviceState"; DO NOT EDIT
package gonetworkmanager
import "fmt"
const _NmDeviceState_name = "NmDeviceStateUnknownNmDeviceStateUnmanagedNmDeviceStateUnavailableNmDeviceStateDisconnectedNmDeviceStatePrepareNmDeviceStateConfigNmDeviceStateNeed_authNmDeviceStateIp_configNmDeviceStateIp_checkNmDeviceStateSecondariesNmDeviceStateActivatedNmDeviceStateDeactivatingNmDeviceStateFailed"
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:152],
70: _NmDeviceState_name[152:174],
80: _NmDeviceState_name[174:195],
90: _NmDeviceState_name[195:219],
100: _NmDeviceState_name[219:241],
110: _NmDeviceState_name[241:266],
120: _NmDeviceState_name[266:285],
}
func (i NmDeviceState) String() string {
if str, ok := _NmDeviceState_map[i]; ok {
return str
}
return fmt.Sprintf("NmDeviceState(%d)", i)
}