Documentation
¶
Overview ¶
Package php_security provides functionality to update PHP security advisories from FriendsOfPHP Security Advisories Database in the knowledge database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdvisoryBranch ¶
type AdvisoryBranch = knowledge.AdvisoryBranch
AdvisoryBranch represents an advisory branch (legacy alias)
type FriendsOfPHPAdvisory ¶
type FriendsOfPHPAdvisory = knowledge.FriendsOfPHPAdvisory
FriendsOfPHPAdvisory represents a FriendsOfPHP advisory (legacy alias)
type PHPCoreVulnerability ¶
type PHPCoreVulnerability struct {
CVE string `json:"cve"`
Summary string `json:"summary"`
Description string `json:"description"`
Published time.Time `json:"published"`
Modified time.Time `json:"modified"`
Severity string `json:"severity"`
CVSS float64 `json:"cvss"`
References []string `json:"references"`
Versions []string `json:"versions"`
}
PHPCoreVulnerability represents a PHP core vulnerability
type PackagistAdvisory ¶
type PackagistAdvisory struct {
AdvisoryID string `json:"advisoryId"`
PackageName string `json:"packageName"`
RemoteID string `json:"remoteId"`
Title string `json:"title"`
Link string `json:"link"`
CVE string `json:"cve"`
AffectedVersions string `json:"affectedVersions"`
Source string `json:"source"`
ReportedAt string `json:"reportedAt"`
ComposerRepository string `json:"composerRepository"`
Severity *string `json:"severity"`
Sources []PackagistAdvisorySource `json:"sources"`
}
PackagistAdvisory represents a single security advisory from Packagist
type PackagistAdvisorySource ¶
PackagistAdvisorySource represents the source of an advisory
type PackagistSecurityResponse ¶
type PackagistSecurityResponse struct {
Advisories map[string][]PackagistAdvisory `json:"advisories"`
}
PackagistSecurityResponse represents the response from Packagist security advisories API
Click to show internal directories.
Click to hide internal directories.