Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Occurrence ¶
type Occurrence struct { Name string `json:"name"` ResourceUri string `json:"resourceUri"` Project string `json:"project"` Registry string `json:"registry"` CreationTime string `json:"createTime"` Vulnerability struct { Severity string `json:"severity"` CvssScore float64 `json:"cvssScore"` PackageIssue []struct { AffectedPackage string `json:"affectedPackage"` AffectedVersion struct { Name string `json:"name"` } `json:"affectedVersion"` FixedPackage string `json:"fixedPackage"` PackageType string `json:"packageType"` EffectiveSeverity string `json:"effectiveSeverity"` } `json:"packageIssue"` ShortDescription string `json:"shortDescription"` } `json:"vulnerability"` }
Occurrence is the payload of a vulnerability occurrence.
func GetOccurrence ¶
func GetOccurrence(ctx context.Context, name string) (*Occurrence, error)
GetOccurrence gets an occurrence by name.
type VulnerabilityMessage ¶
VulnerabilityMessage is the payload of a vulnerability message.
Click to show internal directories.
Click to hide internal directories.