Documentation
¶
Overview ¶
Package gcve provides functionality to synchronize vulnerability data from CIRCL's vulnerability-lookup service (GCVE/CVE data). Uses NDJSON bulk dumps for initial load and incremental API for updates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ADPContainer ¶
type ADPContainer struct {
ProviderMetadata struct {
OrgId string `json:"orgId"`
ShortName string `json:"shortName"`
} `json:"providerMetadata"`
Title string `json:"title,omitempty"`
Affected []RawAffected `json:"affected,omitempty"`
Metrics []json.RawMessage `json:"metrics,omitempty"`
}
type CNAContainer ¶
type CNAContainer struct {
Affected []json.RawMessage `json:"affected"`
Descriptions []knowledge.GCVEDescription `json:"descriptions"`
Metrics []json.RawMessage `json:"metrics"`
ProblemTypes []knowledge.GCVEProblemType `json:"problemTypes"`
References []knowledge.GCVEReference `json:"references"`
}
type CVERecordRaw ¶
type CVERecordRaw struct {
DataType string `json:"dataType"`
DataVersion string `json:"dataVersion"`
CveMetadata struct {
CveId string `json:"cveId"`
AssignerOrgId string `json:"assignerOrgId"`
AssignerShortName string `json:"assignerShortName"`
State string `json:"state"`
DateReserved string `json:"dateReserved"`
DatePublished string `json:"datePublished"`
DateUpdated string `json:"dateUpdated"`
} `json:"cveMetadata"`
Containers struct {
CNA json.RawMessage `json:"cna"`
ADP []json.RawMessage `json:"adp"`
} `json:"containers"`
}
CVERecordRaw represents the raw JSON structure from the NDJSON dump.
type RawAffected ¶
Click to show internal directories.
Click to hide internal directories.