yae

package
v0.0.0-...-ee1e583 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchSHA256

func FetchSHA256(url string, unpack bool) (string, error)

func FetchSRIHash

func FetchSRIHash(sha256 string) (string, error)

func Lister

func Lister(items []string) string

Types

type Environment

type Environment struct {
	Schema  string
	Sources map[string]Source
}

func (*Environment) Add

func (s *Environment) Add(name string, d Source) error

func (*Environment) Drop

func (s *Environment) Drop(url string)

func (*Environment) Exists

func (s *Environment) Exists(name string) bool

func (*Environment) Load

func (s *Environment) Load(path string) error

func (*Environment) Save

func (s *Environment) Save(path string) error

type Source

type Source struct {
	URL           string `json:"url"`
	SHA256        string `json:"sha256"`
	Hash          string `json:"hash"`
	Unpack        bool   `json:"unpack"`
	Type          string `json:"type"`
	Version       string `json:"version,omitempty"`
	URLTemplate   string `json:"url_template,omitempty"`
	TagPredicate  string `json:"tag_predicate,omitempty"`
	TrimTagPrefix string `json:"trim_tag_prefix,omitempty"`
	Pinned        bool   `json:"pinned,omitempty"`
	Force         bool   `json:"force,omitempty"`
}

func (*Source) Update

func (source *Source) Update(sources *Environment, name string, force bool, forcePinned bool) (bool, error)

Jump to

Keyboard shortcuts

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