Documentation ¶
Index ¶
- Constants
- func AddBackup(c *gin.Context)
- func DeleteBackup(c *gin.Context)
- func GetSystemInfo(c *gin.Context)
- func GetSystemLastVersion(c *gin.Context)
- func ListBackup(c *gin.Context)
- func RegisterSupervisorRouter(r gin.IRouter)
- func Restore(c *gin.Context)
- func Update(c *gin.Context)
- func UpdateInfo(c *gin.Context)
- func UpdateLastVersion(c *gin.Context)
- func UpdateSystem(c *gin.Context)
- type Backup
- type GetSystemInfoResp
- type GetSystemLastVersionResp
- type UpdateLastVersionResp
- type UpdateSystemReq
Constants ¶
View Source
const (
EnvironmentSoftwareVersionKey = "SOFTWARE_SERVICE_VERSION"
)
Variables ¶
This section is empty.
Functions ¶
func GetSystemInfo ¶ added in v1.9.1
func GetSystemLastVersion ¶ added in v1.9.1
func UpdateLastVersion ¶ added in v1.9.1
func UpdateSystem ¶ added in v1.9.1
Types ¶
type GetSystemInfoResp ¶ added in v1.9.1
type GetSystemInfoResp struct {
Version string `json:"version"`
}
type GetSystemLastVersionResp ¶ added in v1.9.1
type GetSystemLastVersionResp struct {
LatestVersion string `json:"latest_version"`
}
type UpdateLastVersionResp ¶ added in v1.9.1
type UpdateLastVersionResp struct {
LatestVersion string `json:"latest_version"`
}
type UpdateSystemReq ¶ added in v1.9.1
type UpdateSystemReq struct { FileUrl string `json:"-"` // 固件升级包url Checksum string `json:"-"` // 固件升级包checksum Algorithm string `json:"-"` // checksum算法 Version string `json:"version"` // 固件版本 }
func (*UpdateSystemReq) DownloadImage ¶ added in v1.9.1
func (req *UpdateSystemReq) DownloadImage() (string, error)
func (*UpdateSystemReq) Validate ¶ added in v1.9.1
func (req *UpdateSystemReq) Validate() error
Click to show internal directories.
Click to hide internal directories.