downloader

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Postfix

func Postfix() string

func Prefix

func Prefix() string

Types

type Downloader

type Downloader struct {
	FS            fs.FS
	Hasher        downloader.Hasher
	HashVerifier  downloader.HashVerifier
	Client        *http.Client
	BaseURL       string
	DownloadDir   string
	ForceDownload bool
}

func (*Downloader) CheckIfExistsRemote

func (d *Downloader) CheckIfExistsRemote(ctx context.Context, ver string) error

func (*Downloader) Download

func (d *Downloader) Download(ctx context.Context, ver string) error

Download downloads a binary release of a given version.

Jump to

Keyboard shortcuts

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