32 lines
1.1 KiB
Go
32 lines
1.1 KiB
Go
package rpc
|
|
|
|
import "github.com/amidaware/rmmagent/agent/tasks"
|
|
|
|
type NatsMsg struct {
|
|
Func string `json:"func"`
|
|
Timeout int `json:"timeout"`
|
|
Data map[string]string `json:"payload"`
|
|
ScriptArgs []string `json:"script_args"`
|
|
ProcPID int32 `json:"procpid"`
|
|
TaskPK int `json:"taskpk"`
|
|
ScheduledTask tasks.SchedTask `json:"schedtaskpayload"`
|
|
RecoveryCommand string `json:"recoverycommand"`
|
|
UpdateGUIDs []string `json:"guids"`
|
|
ChocoProgName string `json:"choco_prog_name"`
|
|
PendingActionPK int `json:"pending_action_pk"`
|
|
PatchMgmt bool `json:"patch_mgmt"`
|
|
ID int `json:"id"`
|
|
Code string `json:"code"`
|
|
}
|
|
|
|
type RawCMDResp struct {
|
|
Results string `json:"results"`
|
|
}
|
|
|
|
type RunScriptResp struct {
|
|
Stdout string `json:"stdout"`
|
|
Stderr string `json:"stderr"`
|
|
Retcode int `json:"retcode"`
|
|
ExecTime float64 `json:"execution_time"`
|
|
ID int `json:"id"`
|
|
}
|