Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advisory ¶ added in v0.9.0
type Advisory struct {
// contains filtered or unexported fields
}
Advisory encapsulates the python vulnerability scanner
func NewAdvisory ¶ added in v0.9.0
func NewAdvisory() *Advisory
NewAdvisory is the factory method to return Python Advisory
func (*Advisory) DetectVulnerabilities ¶ added in v0.9.0
func (s *Advisory) DetectVulnerabilities(pkgName, pkgVer string) ([]types.DetectedVulnerability, error)
DetectVulnerabilities scans and returns python vulnerabilities
type Pep440Comparer ¶ added in v0.16.0
type Pep440Comparer struct{}
Pep440Comparer represents a comparer for PEP 440
func (Pep440Comparer) IsVulnerable ¶ added in v0.16.0
func (n Pep440Comparer) IsVulnerable(ver string, advisory dbTypes.Advisory) bool
IsVulnerable checks if the package version is vulnerable to the advisory.
Click to show internal directories.
Click to hide internal directories.