Code Review
/
src
/
xds
/
xds-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix invalid json encoding definition
[src/xds/xds-server.git]
/
lib
/
apiv1
/
exec.go
diff --git
a/lib/apiv1/exec.go
b/lib/apiv1/exec.go
index
f7beea6
..
b0bfd41
100644
(file)
--- a/
lib/apiv1/exec.go
+++ b/
lib/apiv1/exec.go
@@
-22,7
+22,7
@@
type ExecArgs struct {
// ExecOutMsg Message send on each output (stdout+stderr) of executed command
type ExecOutMsg struct {
CmdID string `json:"cmdID"`
// ExecOutMsg Message send on each output (stdout+stderr) of executed command
type ExecOutMsg struct {
CmdID string `json:"cmdID"`
- Timestamp string `json:
timestamp
`
+ Timestamp string `json:
"timestamp"
`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
}
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
}
@@
-30,13
+30,15
@@
type ExecOutMsg struct {
// ExecExitMsg Message send when executed command exited
type ExecExitMsg struct {
CmdID string `json:"cmdID"`
// ExecExitMsg Message send when executed command exited
type ExecExitMsg struct {
CmdID string `json:"cmdID"`
- Timestamp string `json:
timestamp
`
+ Timestamp string `json:
"timestamp"
`
Code int `json:"code"`
Error error `json:"error"`
}
Code int `json:"code"`
Error error `json:"error"`
}
-// E
vent name send in WS
+// E
xecOutEvent Event send in WS when characters are received
const ExecOutEvent = "exec:output"
const ExecOutEvent = "exec:output"
+
+// ExecExitEvent Event send in WS when program exited
const ExecExitEvent = "exec:exit"
var execCommandID = 1
const ExecExitEvent = "exec:exit"
var execCommandID = 1