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
Click to show internal directories.
Click to hide internal directories.