upgrade

package
v2.2.8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 8 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, latestVersion string, latestCommit string, 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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