aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xaapiv1/exec.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-29 11:06:15 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-29 15:24:28 +0100
commit32791ffed5bdfaa698e90f9c067dc6e8ababbfc3 (patch)
treeb537f4607f54b43c9d994a4f7d32f18d84d2962b /lib/xaapiv1/exec.go
parent7c7d90a781082c6bd22d12a5e2451ca61a5198af (diff)
Fixed /exec input stream and /signal.
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'lib/xaapiv1/exec.go')
-rw-r--r--lib/xaapiv1/exec.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/xaapiv1/exec.go b/lib/xaapiv1/exec.go
index b96be79..8438e7f 100644
--- a/lib/xaapiv1/exec.go
+++ b/lib/xaapiv1/exec.go
@@ -16,6 +16,18 @@ type (
CmdTimeout int `json:"timeout"` // command completion timeout in Second
}
+ // ExecResult JSON result of /exec command
+ ExecResult struct {
+ Status string `json:"status"` // status OK
+ CmdID string `json:"cmdID"` // command unique ID
+ }
+
+ // ExecSignalResult JSON result of /signal command
+ ExecSignalResult struct {
+ Status string `json:"status"` // status OK
+ CmdID string `json:"cmdID"` // command unique ID
+ }
+
// ExecInMsg Message used to received input characters (stdin)
ExecInMsg struct {
CmdID string `json:"cmdID"`