Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advisory ¶
type Advisory struct { Ecosystem types.Ecosystem PkgName string VulnerabilityID string Aliases []string // Advisory detail VulnerableVersions []string PatchedVersions []string // Vulnerability detail Severity types.Severity Title string Description string References []string CVSSScoreV3 float64 CVSSVectorV3 string }
type Affected ¶
type Affected struct { Package Package `json:"package"` Severities []Severity `json:"severity,omitempty"` Ranges []Range `json:"ranges,omitempty"` Versions []string `json:"versions,omitempty"` EcosystemSpecific EcosystemSpecific `json:"ecosystem_specific"` }
type EcosystemSpecific ¶
type EcosystemSpecific struct {
Imports []Import `json:"imports,omitempty"`
}
type Entry ¶
type Entry struct { SchemaVersion string `json:"schema_version,omitempty"` ID string `json:"id"` Modified time.Time `json:"modified,omitempty"` Published time.Time `json:"published,omitempty"` Withdrawn *time.Time `json:"withdrawn,omitempty"` Aliases []string `json:"aliases,omitempty"` Summary string `json:"summary,omitempty"` Details string `json:"details"` Severities []Severity `json:"severity"` Affected []Affected `json:"affected"` References []Reference `json:"references,omitempty"` Credits []Credit `json:"credits,omitempty"` DatabaseSpecific json.RawMessage `json:"database_specific,omitempty"` }
type OSV ¶
type OSV struct {
// contains filtered or unexported fields
}
type Range ¶
type Range struct { Type RangeType `json:"type"` Events []RangeEvent `json:"events"` }
type RangeEvent ¶
type Reference ¶
type Reference struct { Type ReferenceType `json:"type"` URL string `json:"url"` }
type ReferenceType ¶
type ReferenceType string
Click to show internal directories.
Click to hide internal directories.