upd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDownloadDir             = "/tmp"
	DefaultDownloadRateLimit       = 1048576 // 1MB/s
	DefaultExtractDir              = "golib-upgrade-svc-tmp"
	DefaultUpgradeDeployScriptPath = "bin/upgrade_deploy.sh"
	DefaultUpgradeStartScriptPath  = "bin/upgrade_start.sh"
	DefaultHashAlgo                = "xxh3"
)
View Source
const DaemonTypeUpd boot.DaemonType = "upd"

Variables

This section is empty.

Functions

func Upgrade

func Upgrade(vi *VerInfo)

Types

type Cfg

type Cfg struct {
	DownloadDir             string `` /* 166-byte string literal not displayed */
	DownloadRateLimit       int    `` /* 145-byte string literal not displayed */
	ExtractDir              string `` /* 284-byte string literal not displayed */
	UpgradeDeployScriptPath string `` /* 281-byte string literal not displayed */
	UpgradeStartScriptPath  string `` /* 302-byte string literal not displayed */
	HashAlgo                string `` /* 174-byte string literal not displayed */
}

func NewCfg

func NewCfg() *Cfg

type Upd

type Upd struct {
	runner.Runner
	*Cfg
	// contains filtered or unexported fields
}

func New

func New() *Upd

func (*Upd) GetCfg

func (u *Upd) GetCfg() interface{}

func (*Upd) Stop

func (u *Upd) Stop() error

func (*Upd) Type

func (u *Upd) Type() interface{}

func (*Upd) Upgrade

func (u *Upd) Upgrade(vi *VerInfo)

type VerInfo

type VerInfo struct {
	Filename string             `json:"filename" yaml:"filename"`
	Ver      string             `json:"ver"      yaml:"ver"`
	StoreCfg *pipeline.StoreCfg `json:"storeCfg" yaml:"storeCfg"`
}

Jump to

Keyboard shortcuts

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