rpm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MulanPSL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name() string

func PkgType

func PkgType() model.PkgType

Types

type Collector

type Collector struct {
	collector.BaseCollector
}

func NewCollector

func NewCollector() *Collector

type RPMArchiveParser

type RPMArchiveParser struct{}

RPMArchiveParser is a parser for rpm archive file

func NewRPMArchiveParser

func NewRPMArchiveParser() *RPMArchiveParser

NewRPMArchiveParser returns a new RPMArchiveParser

func (*RPMArchiveParser) Matcher

func (p *RPMArchiveParser) Matcher() collector.FileMatcher

func (*RPMArchiveParser) Parse

func (p *RPMArchiveParser) Parse(path string) ([]model.Package, error)

type RPMSpecFileParser

type RPMSpecFileParser struct{}

RPMSpecFileParser is a parser for rpm spec file see: https://rpm-packaging-guide.github.io/#what-is-a-spec-file

func NewRPMSpecFileParser

func NewRPMSpecFileParser() *RPMSpecFileParser

NewRPMSpecFileParser returns a new RPMSpecFileParser

func (*RPMSpecFileParser) Matcher

func (*RPMSpecFileParser) Parse

func (p *RPMSpecFileParser) Parse(path string) ([]model.Package, error)

Jump to

Keyboard shortcuts

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