upgrade

package
v0.0.0-...-91c7ab2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitUpgrade

func InitUpgrade(storeDir string)

Types

type Job

type Job struct {
	// contains filtered or unexported fields
}

func (*Job) GetError

func (j *Job) GetError() error

func (*Job) GetProcess

func (j *Job) GetProcess() int

func (*Job) GetState

func (j *Job) GetState() model.UpgradeState

func (*Job) Run

func (j *Job) Run()

type Result

type Result struct {
	JobID string
	Err   error
}

type Upgrade

type Upgrade struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func GetInst

func GetInst() *Upgrade

func (*Upgrade) AddUpgradeJob

func (u *Upgrade) AddUpgradeJob(jobID string, upgradeType model.UpgradeDeviceType, version string, filename string, body []byte) error

func (*Upgrade) QueryJobState

func (u *Upgrade) QueryJobState(jobID string) (state model.UpgradeState, process int, exist bool)

func (*Upgrade) Run

func (u *Upgrade) Run()

func (*Upgrade) SelectJobResult

func (u *Upgrade) SelectJobResult() <-chan Result

Jump to

Keyboard shortcuts

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