rpm

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shell

type Shell struct {
	LicenseDirectory string
	Upload           bool
	RPM              func(argv ...string) (stdout string, stderr string, err error)
	Yum              func(argv ...string) (stdout string, stderr string, err error)
}

Shell holds information and the shell command for RPM analysis.

func ShellOutput

func ShellOutput() Shell

ShellOutput creates a Shell which shells out to rpm to generate values to return.

func (Shell) SinglePackage

func (s Shell) SinglePackage(target string) (graph.Deps, error)

SinglePackage uploads license information pertaining to a single dependency and its dependencies. This function maintains a dependencyMap which references dependency names to their transitive dependencies and an IDMap which references a dependency to its fossa ID.

func (Shell) SystemPackages

func (s Shell) SystemPackages() (graph.Deps, error)

SystemPackages uploads license information for all system level dependencies.

Jump to

Keyboard shortcuts

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