asset

package
v2.29.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exclude

func Exclude(pkgName, assetName string) bool

func ParseAssetInfos

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

func RemoveExtFromAsset added in v2.13.0

func RemoveExtFromAsset(assetName string) (string, string)

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