upgrade

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Download

type Download struct {
	// contains filtered or unexported fields
}

func NewDownload

func NewDownload(hash, url string) (download *Download, e error)

func (*Download) Download

func (d *Download) Download() (e error)

func (*Download) Filename

func (d *Download) Filename() string

type Upgrade

type Upgrade struct {
	// contains filtered or unexported fields
}

func DefaultUpgrade

func DefaultUpgrade() *Upgrade

func (*Upgrade) Do

func (u *Upgrade) Do(yes bool) (upgraded bool, newversion string, e error)

func (*Upgrade) Serve

func (u *Upgrade) Serve()

func (*Upgrade) Upgraded

func (u *Upgrade) Upgraded() (modtime time.Time, version string, upgraded bool)

type Version

type Version struct {
	X, Y, Z int
}

func ParseVersion

func ParseVersion(str string) Version

func (*Version) Less

func (v *Version) Less(o *Version) bool

func (*Version) Parse

func (v *Version) Parse(str string)

func (*Version) String

func (v *Version) String() string

Jump to

Keyboard shortcuts

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