githubrelease

package
v1.41.4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadLatest

func DownloadLatest(cfg *buildconf.Config, org, repo string) (pathToFile string)

func Extract

func Extract(pathToArchive string, targetDir string)

Types

type Info

type Info struct {
	Version  string // The version of the release
	Filename string // The filename of the release (inc extension)
	FileExt  string // The file extension
	URL      string // The URL to download the release from
	Checksum []byte // The checksum of the release
}

func FetchInfo

func FetchInfo(cfg *buildconf.Config, org string, repo string) *Info

getGithubRelease fetches the latest release from Github for the given org and repo.

Jump to

Keyboard shortcuts

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