Documentation ¶
Index ¶
Constants ¶
View Source
const API = "https://cveawg.mitre.org"
Variables ¶
View Source
var ErrNotFound = errors.New("CVE not found")
Functions ¶
This section is empty.
Types ¶
type AffectedVersion ¶
type CVE ¶
type CVE struct { Containers Containers `json:"containers"` CveMetadata CveMetadata `json:"cveMetadata"` DataType string `json:"dataType"` DataVersion string `json:"dataVersion"` }
type Client ¶
func (*Client) FetchFromTrivyDB ¶
type Cna ¶
type Cna struct { Affected []Affected `json:"affected"` DatePublic string `json:"datePublic"` Descriptions []Description `json:"descriptions"` References []References `json:"references"` Title string `json:"title"` }
type Containers ¶
type Containers struct {
Cna Cna `json:"cna"`
}
type CveMetadata ¶
type CveMetadata struct { AssignerOrgID string `json:"assignerOrgId"` AssignerShortName string `json:"assignerShortName"` CveID string `json:"cveId"` DatePublished string `json:"datePublished"` DateReserved string `json:"dateReserved"` DateUpdated string `json:"dateUpdated"` State string `json:"state"` }
type Cvss ¶
type Cvss struct { AttackComplexity string `json:"attackComplexity"` AttackVector string `json:"attackVector"` AvailabilityImpact string `json:"availabilityImpact"` BaseScore float64 `json:"baseScore"` BaseSeverity string `json:"baseSeverity"` ConfidentialityImpact string `json:"confidentialityImpact"` IntegrityImpact string `json:"integrityImpact"` PrivilegesRequired string `json:"privilegesRequired"` Scope string `json:"scope"` UserInteraction string `json:"userInteraction"` VectorString string `json:"vectorString"` Version string `json:"version"` }
type Description ¶
type FixedVersion ¶
type FixedVersion struct {
Fixed string `json:"fixed"`
}
type References ¶
type TrivyCVE ¶
type TrivyCVE struct { ID string `json:"id"` CreatedAt time.Time `json:"created_at"` Summary string `json:"summary"` Component string `json:"component"` Description string `json:"description"` AffectedVersion []AffectedVersion `json:"affected_version"` FixedVersion []FixedVersion `json:"fixed_version"` Urls []string `json:"urls"` Cvss string `json:"cvss"` Severity string `json:"severity"` Score float64 `json:"score"` }
Click to show internal directories.
Click to hide internal directories.