Versions in this module Expand all Collapse all v0 v0.1.0 May 13, 2026 Changes in this version + const DefaultMaxTarballBytes + const DefaultRegistryURL + var ErrUnsafeTarballEntry = errors.New("tarball contains non-regular file entry") + func IsSticky(lockedVersion, constraint string) bool + type Attestation = source.Attestation + type ConstraintKind int + const KindDistTag + const KindExact + const KindRange + func Classify(constraint string) ConstraintKind + type Options struct + HTTPClient *client.Client + MaxTarballBytes int64 + RegistryURL string + SignatureMode SignatureMode + Verifier source.ProvenanceVerifier + type PackageStatus struct + Deprecated string + LastPublish string + Latest string + LatestHasProvenance bool + LatestLicense string + LatestTime string + License string + LockedHasProvenance bool + Yanked bool + type Resolved = source.Resolved + type ResolvedFile = source.ResolvedFile + type SignatureMode int + const SignatureModeEnforce + const SignatureModeOff + const SignatureModeWarn + type Source struct + func New(opts Options) *Source + func (s *Source) Resolve(ctx context.Context, p *purl.PURL, files []string) (*Resolved, error) + func (s *Source) ResolveVersion(ctx context.Context, p *purl.PURL, constraint string, cool *cooldown.Config) (string, error) + func (s *Source) Status(ctx context.Context, p *purl.PURL) (*PackageStatus, error)