asset

package
v2.11.0-2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exclude

func Exclude(pkgName, assetName, version string) bool

func GetFormat

func GetFormat(assetName string) string

func ParseAssetInfos

func ParseAssetInfos(pkgInfo *registry.PackageInfo, assetInfos []*AssetInfo)

func SetArch

func SetArch(assetName, lowAssetName string, assetInfo *AssetInfo)

func SetOS

func SetOS(assetName, lowAssetName string, assetInfo *AssetInfo)

func UpdateASTFile

func UpdateASTFile(file *ast.File, pkgs interface{}) error

Types

type Arch

type Arch struct {
	Name string
	Arch string
}

type AssetInfo

type AssetInfo struct {
	Template           string
	OS                 string
	Arch               string
	DarwinAll          bool
	Format             string
	Replacements       map[string]string
	Score              int
	CompleteWindowsExt *bool
}

func GetOSArch

func GetOSArch(goos, goarch string, assetInfos []*AssetInfo) *AssetInfo

func ParseAssetName

func ParseAssetName(assetName, version string) *AssetInfo

type OS

type OS struct {
	Name string
	OS   string
}

Jump to

Keyboard shortcuts

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