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 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
Click to show internal directories.
Click to hide internal directories.