Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { DBSchemaVersion int // Data is the specific payload that should be written (usually a grype-db v*.Entry struct) Data interface{} }
Entry is a data structure responsible for capturing an individual writable entry from a data.Processor (written by a data.Writer).
type GitHubTransformer ¶
type GitHubTransformer func(entry unmarshal.GitHubAdvisory) ([]Entry, error)
type MSRCTransformer ¶
type MSRCTransformer func(entry unmarshal.MSRCVulnerability) ([]Entry, error)
type MatchExclusionTransformer ¶
type MatchExclusionTransformer func(entry unmarshal.MatchExclusion) ([]Entry, error)
type NVDTransformer ¶
type NVDTransformer func(entry unmarshal.NVDVulnerability) ([]Entry, error)
type OSTransformer ¶
type OSTransformer func(entry unmarshal.OSVulnerability) ([]Entry, error)
type Processor ¶
type Processor interface { IsSupported(schemaURL string) bool Process(reader io.Reader) ([]Entry, error) }
Processor takes individual feed group cache files (for select feed groups) and is responsible to producing data.Entry objects to be written to the DB.
Click to show internal directories.
Click to hide internal directories.