rmmagent/agent/system/structs.go
2022-06-21 16:12:14 -07:00

24 lines
472 B
Go

package system
import "time"
type CmdOptions struct {
Shell string
Command string
Args []string
Timeout time.Duration
IsScript bool
IsExecutable bool
Detached bool
}
type SchedTask struct{ Name string }
type ProcessMsg struct {
Name string `json:"name"`
Pid int `json:"pid"`
MemBytes uint64 `json:"membytes"`
Username string `json:"username"`
UID int `json:"id"`
CPU string `json:"cpu_percent"`
}