supervisor

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvironmentSoftwareVersionKey = "SOFTWARE_SERVICE_VERSION"
)

Variables

This section is empty.

Functions

func AddBackup

func AddBackup(c *gin.Context)

AddBackup 创建并且启动备份

func DeleteBackup added in v1.5.0

func DeleteBackup(c *gin.Context)

DeleteBackup 备份列表

func GetSystemInfo added in v1.9.1

func GetSystemInfo(c *gin.Context)

func GetSystemLastVersion added in v1.9.1

func GetSystemLastVersion(c *gin.Context)

func ListBackup added in v1.5.0

func ListBackup(c *gin.Context)

ListBackup 备份列表

func RegisterSupervisorRouter

func RegisterSupervisorRouter(r gin.IRouter)

func Restore

func Restore(c *gin.Context)

Restore 启动恢复

func Update added in v1.5.0

func Update(c *gin.Context)

Update 更新SA到新版

func UpdateInfo added in v1.5.0

func UpdateInfo(c *gin.Context)

UpdateInfo 查看更新信息

func UpdateLastVersion added in v1.9.1

func UpdateLastVersion(c *gin.Context)

func UpdateSystem added in v1.9.1

func UpdateSystem(c *gin.Context)

Types

type Backup added in v1.5.0

type Backup struct {
	FileName  string `json:"file_name"`
	Note      string `json:"note"`
	CreatedAt int64  `json:"created_at"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL