rpm

package
v1.5.49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 14 Imported by: 2

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

func NewEcosystem

func NewEcosystem(_ context.Context) *indexer.Ecosystem

NewEcosystem provides the set of scanners and coalescers for the rpm ecosystem

Types

type PathSet added in v1.5.40

type PathSet = rpm.PathSet

PathSet is a set of paths "owned" by rpm packages in a given layer.

func NewPathSet added in v1.5.40

func NewPathSet(ctx context.Context, layer *claircore.Layer) (*PathSet, error)

NewPathSet returns a PathSet for the provided layer.

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) Kind

func (*Scanner) Kind() string

Kind implements indexer.VersionedScanner.

func (*Scanner) Name

func (*Scanner) Name() string

Name implements indexer.VersionedScanner.

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

func (*Scanner) Version() string

Version implements indexer.VersionedScanner.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL