-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
75 lines (65 loc) · 1.97 KB
/
types.go
File metadata and controls
75 lines (65 loc) · 1.97 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package trmm
type CheckInNats struct {
Agentid string `json:"agent_id"`
Version string `json:"version"`
}
type AgentInfoNats struct {
Agentid string `json:"agent_id"`
Username string `json:"logged_in_username"`
Hostname string `json:"hostname"`
OS string `json:"operating_system"`
Platform string `json:"plat"`
TotalRAM float64 `json:"total_ram"`
BootTime int64 `json:"boot_time"`
RebootNeeded bool `json:"needs_reboot"`
GoArch string `json:"goarch"`
}
type WinSvcNats struct {
Agentid string `json:"agent_id"`
WinSvcs []WindowsService `json:"services"`
}
type WindowsService struct {
Name string `json:"name"`
Status string `json:"status"`
DisplayName string `json:"display_name"`
BinPath string `json:"binpath"`
Description string `json:"description"`
Username string `json:"username"`
PID uint32 `json:"pid"`
StartType string `json:"start_type"`
DelayedAutoStart bool `json:"autodelay"`
}
type WinWMINats struct {
Agentid string `json:"agent_id"`
WMI interface{} `json:"wmi"`
}
type WinDisksNats struct {
Agentid string `json:"agent_id"`
Disks []Disk `json:"disks"`
}
type Disk struct {
Device string `json:"device"`
Fstype string `json:"fstype"`
Total string `json:"total"`
Used string `json:"used"`
Free string `json:"free"`
Percent int `json:"percent"`
}
type PublicIPNats struct {
Agentid string `json:"agent_id"`
PublicIP string `json:"public_ip"`
}
type WinSoftwareList struct {
Name string `json:"name"`
Version string `json:"version"`
Publisher string `json:"publisher"`
InstallDate string `json:"install_date"`
Size string `json:"size"`
Source string `json:"source"`
Location string `json:"location"`
Uninstall string `json:"uninstall"`
}
type WinSoftwareNats struct {
Agentid string `json:"agent_id"`
Software []WinSoftwareList `json:"software"`
}