Versions in this module Expand all Collapse all v0 v0.11.0 Oct 31, 2026 Changes in this version + var ErrVersionDenied = errors.New("package version blocked by denylist") + var ErrVersionNotFound = errors.New("version not found") + func Abbreviated(body []byte) bool + func AttestationsURL(proxyURL, packageName, version string) string + func Rewrite(packageName string, body []byte, options Options) ([]byte, []string, error) + func TarballURL(proxyURL, packageName, version, tarball string) string + func Version(packageName, specifier string, packument []byte, options Options) ([]byte, error) + func VersionFromFilename(packageName, filename string) string + type CooldownPolicy interface + Enabled func() bool + Evaluate func(ecosystem, packagePURL string, publishedAt, evaluatedAt time.Time) cooldown.Decision + type LocalVersion struct + Entry json.RawMessage + PublishedAt string + Version string + type Options struct + Cooldown CooldownPolicy + DeniedVersions map[string]bool + EvaluatedAt time.Time + LocalVersions []LocalVersion + OnCooldownFilter func(version, publishedAt string) + OnTarballsRewritten func(count int) + ProxyURL string