liuhaijun 3f5f28d785 add sheduling agent
Change-Id: I89f35fb3984044c57f10727432755012542f9fd8
2023-11-16 10:55:57 +00:00

26 lines
722 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package nats_msg_model
import "encoding/json"
func UnmarshalUpgradeCMD(data []byte) (UpgradeCMD, error) {
var r UpgradeCMD
err := json.Unmarshal(data, &r)
return r, err
}
func (r *UpgradeCMD) Marshal() ([]byte, error) {
return json.Marshal(r)
}
type UpgradeCMD struct {
AgentId string `json:"agentId"`
DownUrl string `json:"downUrl"`
BucketName string `json:"bucketName"`
Filename string `json:"filename"`
CompressionType string `json:"compressionType"`
Command string `json:"command"`
Version string `json:"version"`
OsType string `json:"osType"` //字典Windows\Ubuntu\CentOS\KylinOS
ArchType string `json:"archType"` //字典: X86\ARM
}