summaryrefslogtreecommitdiffstats
path: root/lib/xaapiv1/sdks.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-01-04 23:42:31 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-01-04 23:42:33 +0100
commitf1083a8259b3d2f560b5f3ccb8b47c94e297d7fa (patch)
treef737d46443a30c066c29eea738a34174c64ae746 /lib/xaapiv1/sdks.go
parent45f6472d1e8ecad428da314a6d762143f033865d (diff)
Fixed Xds-server re-connection.
Add a callback on XDS-Server connect in order to properly register to XDS Server events in all cases (IOW on reconnection). Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'lib/xaapiv1/sdks.go')
-rw-r--r--lib/xaapiv1/sdks.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/xaapiv1/sdks.go b/lib/xaapiv1/sdks.go
index 589f748..5a20571 100644
--- a/lib/xaapiv1/sdks.go
+++ b/lib/xaapiv1/sdks.go
@@ -46,10 +46,11 @@ type SDK struct {
// SDKInstallArgs JSON parameters of POST /sdks or /sdks/abortinstall commands
type SDKInstallArgs struct {
- ID string `json:"id" binding:"required"` // install by ID (must be part of GET /sdks result)
- Filename string `json:"filename"` // install by using a file
- Force bool `json:"force"` // force SDK install when already existing
- Timeout int `json:"timeout"` // 1800 == default 30 minutes
+ ID string `json:"id"` // install by ID (must be part of GET /sdks result)
+ Filename string `json:"filename"` // install by using a file
+ Force bool `json:"force"` // force SDK install when already existing
+ Timeout int `json:"timeout"` // 1800 == default 30 minutes
+ InstallArgs []string `json:"installArgs"` // args directly passed to add/install script
}
// SDKManagementMsg Message send during SDK installation or when installation is complete