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

30 lines
941 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 UnmarshalLocalUpgradeCMD(data []byte) (LocalUpgradeCMD, error) {
var r LocalUpgradeCMD
err := json.Unmarshal(data, &r)
return r, err
}
func (r *LocalUpgradeCMD) Marshal() ([]byte, error) {
return json.Marshal(r)
}
type LocalUpgradeCMD struct {
AgentId string `json:"agentId"` // 需要关联升级记录
// 备用
DownUrl string `json:"downUrl"`
Filename string `json:"filename"`
Version string `json:"version"`
Command string `json:"command"`
CompressionType string `json:"compressionType"` // tar.gz or zip
IP string `json:"ip"`
Port uint16 `json:"port"`
OsType string `json:"osType"` // 字典Windows\Ubuntu\CentOS\KylinOS
ArchType string `json:"archType"` // 字典: X86\ARM
//DeviceType string `json:"deviceType"` // 设备类型;0:为全部1应用一体机2调度一体机3纳管一体机
}