Versions in this module Expand all Collapse all v0 v0.2.1 Sep 4, 2026 v0.2.0 Aug 24, 2026 Changes in this version + var ErrNotFound = errors.New("artifact not found") + var ErrOffline = errors.New("artifact unavailable offline") + var ErrTooLarge = errors.New("artifact exceeds size limit") + type Download struct + Body io.ReadCloser + MediaType string + Size int64 + type Entry struct + Artifact artifacts.Artifact + Body io.ReadCloser + type Fetcher interface + Fetch func(context.Context, string) (*Download, error) + type Options struct + MaxBytes int64 + Offline bool + type Request struct + Filename string + Integrity integrity.SRI + PURL string + type Resolver interface + Resolve func(context.Context, Request) (Source, error) + type Result struct + Artifact artifacts.Artifact + Body io.ReadCloser + Cached bool + type Service struct + Fetcher Fetcher + Resolver Resolver + Store Store + func (service Service) Acquire(ctx context.Context, request Request, options Options) (*Result, error) + func (service Service) AcquireFrom(ctx context.Context, request Request, source Source, options Options) (*Result, error) + type Source struct + Filename string + Integrity integrity.SRI + MediaType string + URL string + type Stage interface + Commit func(context.Context, artifacts.Artifact) (io.ReadCloser, error) + Discard func(context.Context) error + type Store interface + Open func(context.Context, Request) (*Entry, error) + Stage func(context.Context, Request, Source) (Stage, error)