updater

package
v0.0.0-...-5fe617f Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdUpdater

type CmdUpdater struct {
	CmdRepositoryBaseUrl string
	LocalRepo            repository.PackageRepository
	User                 user.User
	Timeout              time.Duration
	EnableCI             bool
	PackageLockFile      string
	VerifyChecksum       bool
	VerifySignature      bool
	// contains filtered or unexported fields
}

func (*CmdUpdater) CheckUpdateAsync

func (u *CmdUpdater) CheckUpdateAsync()

func (*CmdUpdater) LoadLockedPackages

func (u *CmdUpdater) LoadLockedPackages(lockFile string) (map[string]string, error)

load the package lock file

func (*CmdUpdater) Update

func (u *CmdUpdater) Update() error

type LatestVersion

type LatestVersion struct {
	Version        string `json:"version" yaml:"version"`
	ReleaseNotes   string `json:"releaseNotes" yaml:"releaseNotes"`
	StartPartition uint8  `json:"startPartition" yaml:"startPartition"`
	EndPartition   uint8  `json:"endPartition" yaml:"endPartition"`
}

type SelfUpdater

type SelfUpdater struct {
	BinaryName        string
	LatestVersionUrl  string
	SelfUpdateRootUrl string
	User              user.User
	CurrentVersion    string
	Timeout           time.Duration
	// contains filtered or unexported fields
}

func (*SelfUpdater) CheckUpdateAsync

func (u *SelfUpdater) CheckUpdateAsync()

func (*SelfUpdater) Update

func (u *SelfUpdater) Update() error

type Updater

type Updater interface {
	CheckUpdateAsync()
	Update() error
}

Jump to

Keyboard shortcuts

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