rpm

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEcosystem

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

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

Types

type Scanner

type Scanner struct{}

Scanner implements the scanner.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 scanner.VersionedScanner.

func (*Scanner) Name

func (*Scanner) Name() string

Name implements scanner.VersionedScanner.

func (*Scanner) Scan

func (ps *Scanner) Scan(ctx context.Context, layer *claircore.Layer) ([]*claircore.Package, 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.

The external commands "tar" and "rpm" are used and expected to be in PATH.

func (*Scanner) Version

func (*Scanner) Version() string

Version implements scanner.VersionedScanner.

Jump to

Keyboard shortcuts

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