Versions in this module Expand all Collapse all v1 v1.1.0 Sep 20, 2026 v1.0.0 Aug 2, 2026 Changes in this version + const DefaultMaxMemoryCacheEntries + const PluginConfigIDEnv + const StatusScanned + func PluginConfigID(defaultValue string) string + func ScanInput(r io.Reader, handler InputHandler) error + type Document struct + IntelSpecific map[string]any + Malicious *bool + MaliciousPackage *bool + PURL string + PluginID string + ResultCount []int + Status string + SuspiciousScore *float64 + VulnerabilityIDs []string + func CleanDocument(pluginID, purl string) Document + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(doc Document) error + type InputHandler struct + Flush func() error + PURL func(string) error + type PURL struct + Name string + Raw string + Type string + Version string + func ParsePURL(value string) (PURL, bool) + type ResultCache interface + Close func() error + Get func(purl string) ([]byte, bool, error) + Set func(purl string, value []byte) error + func NewResultCache(opts ResultCacheOptions) (ResultCache, error) + type ResultCacheOptions struct + MaxMemoryEntries int + Path string + PluginConfigID string