Documentation
¶
Overview ¶
Package release provides shared types for representing releases and their assets across different source providers (GitHub, GitLab, etc.).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrRelease = errors.New("release")
ErrRelease is returned when a release issue is encountered.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
Asset represents a release asset with its name, download URL, content type, and optional digest.
func (Asset) HasExtension ¶
HasExtension checks if the asset has the given file extension.
type Assets ¶
type Assets []Asset
Assets represents a collection of release assets.
func (Assets) Checksums ¶
Checksums returns all assets that appear to be checksum files. When pattern is non-empty, only checksum-like assets matching the pattern are returned.
func (Assets) FilterByName ¶
FilterByName returns the assets that match the given name. It compares asset names in a case-insensitive manner.