Documentation
¶
Index ¶
- type AnnotatedOpenVEXTransformerV2
- type CSAFVEXTransformerV2
- type EOLTransformerV2
- type EPSSTransformerV2
- type Entry
- type GitHubTransformer
- type GitHubTransformerV2
- type KnownExploitedVulnerabilityTransformerV2
- type MSRCTransformer
- type MSRCTransformerV2
- type MatchExclusionTransformer
- type MatchExclusionTransformerV2
- type NVDTransformer
- type NVDTransformerV2
- type OSTransformer
- type OSTransformerV2
- type OSVTransformerV2
- type OpenVEXTransformerV2
- type Processor
- type Severity
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSAFVEXTransformerV2 ¶ added in v0.111.0
type EOLTransformerV2 ¶
type EPSSTransformerV2 ¶
type Entry ¶
type Entry struct {
DBSchemaVersion int
// Data is the specific payload that should be written (usually a grype-db v*.Entry struct)
Data any
}
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 GitHubTransformerV2 ¶
type MSRCTransformer ¶
type MSRCTransformer func(entry unmarshal.MSRCVulnerability) ([]Entry, error)
type MSRCTransformerV2 ¶
type MatchExclusionTransformer ¶
type MatchExclusionTransformer func(entry unmarshal.MatchExclusion) ([]Entry, error)
type NVDTransformer ¶
type NVDTransformer func(entry unmarshal.NVDVulnerability) ([]Entry, error)
type NVDTransformerV2 ¶
type OSTransformer ¶
type OSTransformer func(entry unmarshal.OSVulnerability) ([]Entry, error)
type OSTransformerV2 ¶
type OSVTransformerV2 ¶
type OpenVEXTransformerV2 ¶
type Processor ¶
type Processor interface {
IsSupported(schemaURL string) bool
Process(reader io.Reader, state provider.State) ([]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.