aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xaapiv1/sdks.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-01-23 15:33:08 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-01-23 15:33:08 +0100
commitfacf3f10b243d027cc2a28661fe1cd8d4253dafa (patch)
treec483a3b2461cce66f109a3318276d276db8bbf3f /lib/xaapiv1/sdks.go
parent6d17c864bad066fbb5400733dcaf918253f5973b (diff)
Reworked SDKs events (introduced sdk-state-change)eel_5.0.1eel/5.0.15.0.1
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'lib/xaapiv1/sdks.go')
-rw-r--r--lib/xaapiv1/sdks.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/xaapiv1/sdks.go b/lib/xaapiv1/sdks.go
index 7f2ab02..97db9a8 100644
--- a/lib/xaapiv1/sdks.go
+++ b/lib/xaapiv1/sdks.go
@@ -53,10 +53,17 @@ type SDKInstallArgs struct {
InstallArgs []string `json:"installArgs"` // args directly passed to add/install script
}
+// SDK SDKManagementMsg Actions
+const (
+ SdkMgtActionInstall = "installing"
+ SdkMgtActionRemove = "removing"
+)
+
// SDKManagementMsg Message send during SDK installation or when installation is complete
type SDKManagementMsg struct {
CmdID string `json:"cmdID"`
Timestamp string `json:"timestamp"`
+ Action string `json:"action"`
Sdk SDK `json:"sdk"`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`