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.
Click to show internal directories.
Click to hide internal directories.