Documentation ¶
Overview ¶
Package python contains components for interrogating python packages in container layers.
Index ¶
- func NewCoalescer(_ context.Context) (indexer.Coalescer, error)
- func NewEcosystem(ctx context.Context) *indexer.Ecosystem
- type Matcher
- func (*Matcher) Filter(record *claircore.IndexRecord) bool
- func (*Matcher) Name() string
- func (*Matcher) Query() []driver.MatchConstraint
- func (*Matcher) VersionAuthoritative() bool
- func (*Matcher) VersionFilter()
- func (*Matcher) Vulnerable(record *claircore.IndexRecord, vuln *claircore.Vulnerability) bool
- type Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matcher ¶
type Matcher struct{}
Matcher attempts to correlate discovered python packages with reported vulnerabilities.
func (*Matcher) Filter ¶
func (*Matcher) Filter(record *claircore.IndexRecord) bool
Filter implements driver.Matcher.
func (*Matcher) Query ¶
func (*Matcher) Query() []driver.MatchConstraint
Query implements driver.Matcher.
func (*Matcher) VersionAuthoritative ¶
VersionAuthoritative implements driver.VersionFilter.
func (*Matcher) VersionFilter ¶
func (*Matcher) VersionFilter()
VersionFilter opts in to filtering versions in the database.
func (*Matcher) Vulnerable ¶
func (*Matcher) Vulnerable(record *claircore.IndexRecord, vuln *claircore.Vulnerability) bool
Vulnerable implements driver.Matcher.
type Scanner ¶
type Scanner struct{}
Scanner implements the scanner.PackageScanner interface.
It looks for directories that seem like wheels or eggs, and looks at the metadata recorded there.
The zero value is ready to use.
Click to show internal directories.
Click to hide internal directories.