Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advisory ¶
type Advisory struct {
// ID is the unique identifier of the advisory in the WP Sec Adv database.
// For example, "WPSECADV/AAA/BBB/CCC".
ID string `json:"advisoryId"`
Title string `json:"title"`
// ReportedAt is the date the issue was reported in UTC.
// For example, "2006-01-02 15:04:05".
ReportedAt string `json:"reportedAt"`
Sources []Source `json:"sources"`
// Link is a URL to issue disclosure.
Link string `json:"link,omitempty"`
CVE string `json:"cve,omitempty"`
// AffectedVersions is a string in form of a composer constraint.
// For example, ">=1.0.0,<2.0.0|>3.0.0,<=3.4.0|=5.0.0".
AffectedVersions string `json:"affectedVersions"`
// Severity is the lowercased CVSS3 severity rating scale.
// Possible values: "none", "low", "medium", "high", "critical".
Severity string `json:"severity,omitempty"`
}
func (Advisory) Complete ¶
Complete reports whether the advisory has all required fields to be considered a SecurityAdvisory by Composer.
Click to show internal directories.
Click to hide internal directories.