assets

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessURL added in v0.2.0

func ProcessURL(gf *FilteredAsset) (string, io.Reader, error)

ProcessURL processes a FilteredAsset by uncompressing/unarchiving the URL of the asset.

func SanitizeName

func SanitizeName(name, version string) string

SanitizeName removes irrelevant information from the file name in case it exists

Types

type Asset

type Asset struct {
	Name        string
	DisplayName string
	URL         string
}

func (Asset) String added in v0.2.1

func (g Asset) String() string

type FilteredAsset

type FilteredAsset struct {
	RepoName    string
	Name        string
	DisplayName string
	URL         string

	ExtraHeaders map[string]string
	// contains filtered or unexported fields
}

func FilterAssets

func FilterAssets(repoName string, as []*Asset) (*FilteredAsset, error)

FilterAssets receives a slice of GL assets and tries to select the proper one and ask the user to manually select one in case it can't determine it

func (FilteredAsset) String

func (g FilteredAsset) String() string

Jump to

Keyboard shortcuts

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