upd

package
v0.1.55 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DaemonTypeUpd boot.DaemonType = "upd"

Variables

View Source
var (
	DefaultUpgradeOutputPath = filepath.Join(os.TempDir(), "upgrade.out")
)
View Source
var (
	ErrAlreadyUpgrading = errors.New("already upgrading")
)

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	UpgradeCmd        []string `yaml:"upgradeCmd"`
	UpgradeOutputPath string   `yaml:"upgradeOutputPath"`
}

func NewCfg

func NewCfg() *Cfg

type Upd

type Upd interface {
	boot.Daemon
	Upgrade(vi *VerInfo) error
}
var D Upd = New()

func New

func New() Upd

type VerInfo

type VerInfo struct {
	Ver               string              `json:"ver"               yaml:"ver"             validate:"required"`
	StoreCfg          *pipeline.ReaderCfg `json:"storeCfg"          yaml:"storeCfg"        validate:"required"`
	DownloadDstPath   string              `json:"downloadDstPath"   yaml:"downloadDstPath" validate:"required"`
	UpgradeCmd        []string            `json:"upgradeCmd"        yaml:"upgradeCmd"`
	UpgradeOutputPath string              `json:"upgradeOutputPath" yaml:"upgradeOutputPath"`
}

Jump to

Keyboard shortcuts

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