rpm

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package rpm provides a concrete DBCataloger implementation for RPM "Package" DB files and a FileCataloger for RPM files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBCataloger

type DBCataloger struct{}

func NewRpmdbCataloger

func NewRpmdbCataloger() *DBCataloger

NewRpmdbCataloger returns a new RPM DB cataloger object.

func (*DBCataloger) Catalog

func (c *DBCataloger) Catalog(resolver source.FileResolver) ([]pkg.Package, []artifact.Relationship, error)

Catalog is given an object to resolve file references and content, this function returns any discovered Packages after analyzing rpm db installation.

func (*DBCataloger) Name

func (c *DBCataloger) Name() string

Name returns a string that uniquely describes a cataloger

type FileCataloger

type FileCataloger struct{}

func NewFileCataloger

func NewFileCataloger() *FileCataloger

NewFileCataloger returns a new RPM file cataloger object.

func (*FileCataloger) Catalog

func (c *FileCataloger) Catalog(resolver source.FileResolver) ([]pkg.Package, []artifact.Relationship, error)

Catalog is given an object to resolve file references and content, this function returns any discovered Packages after analyzing rpm files

func (*FileCataloger) Name

func (c *FileCataloger) Name() string

Name returns a string that uniquely describes a cataloger

Jump to

Keyboard shortcuts

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