Files
katenary/doc/docs/packages/update.md
Patrice Ferlet 475a025d9e Go to Katenary V3
This is the next-gen of Katenary
2023-12-06 15:24:02 +01:00

992 B

update

import "katenary/update"

Update package is used to check if a new version of katenary is available.

Variables

var Version = "master" // reset by cmd/main.go

func DownloadFile

func DownloadFile(url, exe string) error

DownloadFile will download a url to a local file. It also ensure that the file is executable.

func DownloadLatestVersion

func DownloadLatestVersion(assets []Asset) error

DownloadLatestVersion will download the latest version of katenary.

type Asset

Asset is a github asset from release url.

type Asset struct {
    Name string `json:"name"`
    URL  string `json:"browser_download_url"`
}

func CheckLatestVersion

func CheckLatestVersion() (string, []Asset, error)

CheckLatestVersion check katenary latest version from release and propose to download it

Generated by gomarkdoc