internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(msg string)

func FatalIf

func FatalIf(err error)

func FetchAsset

func FetchAsset(url, hashSpec, outPath, pkgName string) error

func FilterPackages

func FilterPackages(allPackages map[string]Package, filters []string) map[string]Package

func ListPackages

func ListPackages(cfg *Config, platform, selectStr string)

func ParseSelect

func ParseSelect(s string) []string

func VerifyFileHash

func VerifyFileHash(path, hashSpec string) (bool, error)

func Worker

func Worker(wg *sync.WaitGroup, jobs <-chan Job, results chan<- Result)

Types

type Asset

type Asset struct {
	URL  string `yaml:"url"`
	Hash string `yaml:"hash"`
}

type Config

type Config struct {
	Packages map[string]Package `yaml:"packages"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

type Job

type Job struct {
	Name    string
	Version string
	URL     string
	Hash    string
	OutPath string
}

type Package

type Package struct {
	Version        string           `yaml:"version"`
	Tags           []string         `yaml:"tags,omitempty"`
	GlobalAssets   map[string]Asset `yaml:"global_assets,omitempty"`
	PlatformAssets map[string]Asset `yaml:"platform_assets,omitempty"`
}

type Result

type Result struct {
	Name string
	Err  error
}

Jump to

Keyboard shortcuts

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