Added support of new image_url field
[src/xds/xds-agent.git] / lib / xaapiv1 / sdks.go
index 7f2ab02..2d5ce96 100644 (file)
@@ -36,6 +36,7 @@ type SDK struct {
        Arch        string `json:"arch"`
        Path        string `json:"path"`
        URL         string `json:"url"`
+       ImageURL    string `json:"image_url"`
        Status      string `json:"status"`
        Date        string `json:"date"`
        Size        string `json:"size"`
@@ -53,10 +54,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"`