Versions in this module Expand all Collapse all v1 v1.12.5 Oct 24, 2022 v1.12.4 Oct 24, 2022 Changes in this version + const ExtraBinaries + const ExtraBinary + const ExtraBuilds + const ExtraExt + const ExtraFormat + const ExtraID + const ExtraRefresh + const ExtraReplaces + const ExtraWrappedIn + func Extra(a Artifact, key string) (T, error) + func ExtraOr(a Artifact, key string, or T) T + func OnlyReplacingUnibins(a *Artifact) bool + type Artifact struct + Extra Extras + Goamd64 string + Goarch string + Goarm string + Gomips string + Goos string + Name string + Path string + Type Type + TypeS string + func (a Artifact) Checksum(algorithm string) (string, error) + func (a Artifact) Format() string + func (a Artifact) ID() string + func (a Artifact) Refresh() error + func (a Artifact) String() string + type Artifacts struct + func New() Artifacts + func (artifacts *Artifacts) Add(a *Artifact) + func (artifacts *Artifacts) Filter(filter Filter) Artifacts + func (artifacts *Artifacts) Remove(filter Filter) error + func (artifacts Artifacts) GroupByID() map[string][]*Artifact + func (artifacts Artifacts) GroupByPlatform() map[string][]*Artifact + func (artifacts Artifacts) List() []*Artifact + func (artifacts Artifacts) Paths() []string + func (artifacts Artifacts) Visit(fn VisitFn) error + type Extras map[string]any + func (e Extras) MarshalJSON() ([]byte, error) + type Filter func(a *Artifact) bool + func And(filters ...Filter) Filter + func ByBinaryLikeArtifacts(arts Artifacts) Filter + func ByExt(exts ...string) Filter + func ByFormats(formats ...string) Filter + func ByGoamd64(s string) Filter + func ByGoarch(s string) Filter + func ByGoarm(s string) Filter + func ByGoos(s string) Filter + func ByIDs(ids ...string) Filter + func ByType(t Type) Filter + func Or(filters ...Filter) Filter + type Type int + const Binary + const BrewTap + const Certificate + const Checksum + const DockerImage + const DockerManifest + const KrewPluginManifest + const LinuxPackage + const PkgBuild + const PublishableDockerImage + const PublishableSnapcraft + const SBOM + const ScoopManifest + const Signature + const Snapcraft + const SrcInfo + const UniversalBinary + const UploadableArchive + const UploadableBinary + const UploadableFile + const UploadableSourceArchive + func (t Type) String() string + type VisitFn func(a *Artifact) error