Fixed sdk from local file installation
[src/xds/xds-server.git] / lib / xsapiv1 / sdks.go
index f751fc6..54b941b 100644 (file)
@@ -30,6 +30,7 @@ const (
 type SDK struct {
        ID          string `json:"id" binding:"required"`
        Name        string `json:"name"`
+       UUID        string `json:"uuid"`
        Description string `json:"description"`
        Profile     string `json:"profile"`
        Version     string `json:"version"`
@@ -65,10 +66,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"`