releases

package
v0.11.1-0...-8ab92b3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader interface {
	Download(url, file string) error
}

Downloader takes a URL (to a Github release) and a file path to save the file to.

func NewDownloader

func NewDownloader() Downloader

type Finder

type Finder interface {
	Find(url, system, arch string) (*Release, error)
}

Finder is the interface that is used to find a specific release from the GitHub API using a URL, runtime.GOOS, and runtime.GOSARCH. It will return a Release struct or an error.

func NewFinder

func NewFinder() Finder

NewFinder returns a new github release finder with the default HTTP client.

type Release

type Release struct {
	URL             string
	ContentType     string
	OperatingSystem string
	Version         string
}

Release represents the release asset

Jump to

Keyboard shortcuts

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