update

package
v1.34.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: Apache-2.0 Imports: 22 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentVersion

func CurrentVersion() (semver.Version, error)

CurrentVersion returns the current version of minishift binary installed on the system

func IsNewerVersion

func IsNewerVersion(localVersion, latestVersion semver.Version) bool

IsNewerVersion compares the local and latest versions and returns a boolean

func LatestVersion

func LatestVersion() (semver.Version, error)

LatestVersion returns the latest version of minishift binary available from upstream

func Update

func Update(latestVersion semver.Version) error

Update handles the update process by downloading, verifying, extracting and replacing the binary with latest version from GitHub. It returns an error if any of these functions fails at any point.

Types

This section is empty.

Jump to

Keyboard shortcuts

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