Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskUsages ¶ added in v0.1.1
type DiskUsages struct { Source string `json:"source"` Target string `json:"target"` Perc string `json:"pcent"` Used string `json:"used"` Total string `json:"itotal"` }
func ParseDiskUsage ¶ added in v0.1.1
func ParseDiskUsage(output []byte) ([]DiskUsages, error)
type ProcessStatusItems ¶
type ProcessStatusItems struct { PID int `json:"pid"` User string `json:"user"` Nice int `json:"ni"` CPU float64 `json:"cpu"` Memory float64 `json:"mem"` Command string `json:"command"` }
func ParsePSOutput ¶
func ParsePSOutput(bytestream []byte) ([]ProcessStatusItems, error)
type SystemdItems ¶
type SystemdItems struct { Name string `json:"serviceName"` Loaded string `json:"loaded"` State string `json:"state"` Status string `json:"status"` Description string `json:"description"` }
func ParseSystemdOutput ¶
func ParseSystemdOutput(bytestream []byte) ([]SystemdItems, error)
Click to show internal directories.
Click to hide internal directories.