21 lines
468 B
Go
21 lines
468 B
Go
package types
|
|
|
|
// instruction is a structured way of sending commands
|
|
type Instruction struct {
|
|
Command string `json:"command"`
|
|
Args []string `json:"args"`
|
|
}
|
|
|
|
// cmdResponse is a response from the client to the server
|
|
type CmdResponse struct {
|
|
Stdout string `json:"stdout"`
|
|
Stderr string `json:"stderr"`
|
|
ExitCode int `json:"exitcode"`
|
|
}
|
|
|
|
// osInfo needs a comment
|
|
type OSInfo struct {
|
|
OSType string `json:"os_type"`
|
|
OSArch string `json:"os_arch"`
|
|
}
|