Versions in this module Expand all Collapse all v0 v0.11.0 Oct 31, 2026 Changes in this version type Registry + func (r *Registry) Source(p *purl.PURL) (string, bool) type Rules + Sources map[string]map[string]time.Duration + func (r Rules) Pending(key string) bool + func (r Rules) Resolve(key, source string, canonical []string) error type Spec + SourcePackage func(p *purl.PURL) bool v0.10.0 Oct 20, 2026 Changes in this version + var Default = NewRegistry() + var KnownKeys = []string + func DefaultCanonical(key string) func(p *purl.PURL) (string, bool) + func IsKnown(key string) bool + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Canonical(p *purl.PURL) (string, bool) + func (r *Registry) KeyForDBEcosystem(ecosystem string) (string, bool) + func (r *Registry) Keys() []string + func (r *Registry) Lookup(key string) (Spec, bool) + func (r *Registry) Register(s Spec) + type Rules struct + Default time.Duration + Ecosystems map[string]time.Duration + Packages map[string]time.Duration + func (r Rules) For(key, packagePURL string) time.Duration + func (r Rules) MinPositive() time.Duration + type Spec struct + CanonicalPackage func(p *purl.PURL) (string, bool) + ExtraDBEcosystems []string + Key string