asset

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoAsset = errors.New("no asset found")

Functions

This section is empty.

Types

type AssetDownloadOpt

type AssetDownloadOpt func(*downloader)

func WithArch

func WithArch(arch string) AssetDownloadOpt

func WithLookupArchFallback added in v0.4.0

func WithLookupArchFallback(lookupArchFallback map[string]string) AssetDownloadOpt

func WithOS

func WithOS(os string) AssetDownloadOpt

type Downloader

type Downloader interface {
	DownloadAsset(ctx context.Context, ReleaseAssets []release.Asset) (*Info, cleanupFn, error)
}

func NewAssetDownloader

func NewAssetDownloader(executablePath string, opts ...AssetDownloadOpt) Downloader

type Info

type Info struct {
	Checksum                 string
	DownloadedBinaryFilePath string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳