-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtypes.go
More file actions
46 lines (39 loc) · 1.19 KB
/
types.go
File metadata and controls
46 lines (39 loc) · 1.19 KB
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
package main
type Interface struct {
Name string `json:"name"`
Ips []string `json:"ips"`
Mac string `json:"mac"`
}
type CPUInformation struct {
Name string `json:"name"`
Count int `json:"count"`
}
type MemoryInformation struct {
Total string `json:"total"`
}
type OperatingSystem struct {
Name string `json:"name"`
UID string `json:"uid"`
Version string `json:"version"`
Interfaces []Interface `json:"interfaces"`
Hostname string `json:"hostname"`
CPUInformation CPUInformation `json:"cpu_information"`
MemoryInformation MemoryInformation `json:"memory_information"`
}
type OsPackage struct {
Name string `json:"name"`
Current_version string `json:"current_version"`
Candidate_version string `json:"candidate_version"`
Priority string `json:"priority"`
Security bool `json:"security"`
Section string `json:"section"`
}
type Updates struct {
Regular int `json:"regular"`
Security int `json:"security"`
}
type Source struct {
Url string `json:"url"`
Src bool `json:"src"`
Channels []string `json:"channels"`
}