upgrade

package
v0.0.0-...-ff8f6dd Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upgrade

type Upgrade struct {
	HomeDir             string
	CurrVersion         string
	RemoteVersion       string
	LastestVersion      string
	LastestAfrogVersion string
	IsUpdatePocs        bool
}

func NewUpgrade

func NewUpgrade(updatePoc bool) (*Upgrade, error)

func (*Upgrade) CheckUpgrade

func (u *Upgrade) CheckUpgrade() (bool, error)

func (*Upgrade) Download

func (u *Upgrade) Download() error

func (*Upgrade) Unzip

func (u *Upgrade) Unzip(src string) error

func (*Upgrade) UpgradePocs

func (u *Upgrade) UpgradePocs() (string, error)

Jump to

Keyboard shortcuts

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