upgrade

package
v2.2.17 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(ctx context.Context, client *http.Client, url string) error

Main 1) get current binary version 2) get the latest version 3) compare two version decide needs to download or not 4) download newer version zip 5) unzip to temp file 6) check permission of putting new kubevpn back 7) chmod +x, move old to /temp, move new to CURRENT_FOLDER

func NeedsUpgrade added in v2.2.16

func NeedsUpgrade(ctx context.Context, client *http.Client, version string) (url string, latestVersion string, upgrade bool, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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