Documentation
¶
Overview ¶
Package rpm provides an indexer.PackageScanner for the rpm package manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scanner ¶
type Scanner struct{}
Scanner implements the indexer.PackageScanner interface.
This looks for directories that look like rpm databases and examines the files it finds there.
The zero value is ready to use.
func (*Scanner) Scan
deprecated
func (ps *Scanner) Scan(ctx context.Context, layer *claircore.Layer) (out []*claircore.Package, err error)
Scan attempts to find rpm databases within the layer and enumerate the packages there.
A return of (nil, nil) is expected if there's no rpm database.
Deprecated: In-tree indexer.PackageScanner implementations should almost certainly use the "internal/rpm" and "internal/dnf" packages.
func (*Scanner) Version ¶
Version implements indexer.VersionedScanner.
Click to show internal directories.
Click to hide internal directories.