-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypes.go
64 lines (55 loc) · 1.04 KB
/
types.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package wu
type UpdateType int
const (
UPDATETYPE_SOFTWARE UpdateType = iota + 1
UPDATETYPE_DRIVERS
)
func (ut UpdateType) String() string {
switch ut {
case UPDATETYPE_SOFTWARE:
return "Software"
case UPDATETYPE_DRIVERS:
return "Drivers"
default:
return "Unknown"
}
}
type AutoDownload int
const (
AUTODOWNLOAD_STANDARD AutoDownload = iota
AUTODOWNLOAD_NEVER
AUTODOWNLOAD_ALWAYS
)
func (ad AutoDownload) String() string {
switch ad {
case AUTODOWNLOAD_STANDARD:
return "Standard"
case AUTODOWNLOAD_NEVER:
return "Never"
case AUTODOWNLOAD_ALWAYS:
return "Always"
default:
return "Unknown"
}
}
type AutoSelection int
const (
AUTOSELECTION_STANDARD AutoSelection = iota
AUTOSELECTION_IFDOWNLOADED
AUTOSELECTION_NEVER
AUTOSELECTION_ALWAYS
)
func (as AutoSelection) String() string {
switch as {
case AUTOSELECTION_STANDARD:
return "Standard"
case AUTOSELECTION_IFDOWNLOADED:
return "IfDownloaded"
case AUTOSELECTION_NEVER:
return "Never"
case AUTOSELECTION_ALWAYS:
return "Always"
default:
return "Unknown"
}
}