Documentation ¶
Overview ¶
Package spdx extracts software dependencies from an SPDX SBOM.
Index ¶
- type Extractor
- func (Extractor) Ecosystem(i *extractor.Inventory) (string, error)
- func (e Extractor) Extract(ctx context.Context, input *filesystem.ScanInput) ([]*extractor.Inventory, error)
- func (e Extractor) FileRequired(path string, _ fs.FileInfo) bool
- func (e Extractor) Name() string
- func (e Extractor) Requirements() *plugin.Capabilities
- func (e Extractor) ToCPEs(i *extractor.Inventory) ([]string, error)
- func (e Extractor) ToPURL(i *extractor.Inventory) (*purl.PackageURL, error)
- func (e Extractor) Version() int
- type Metadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extractor ¶
type Extractor struct{}
Extractor extracts software dependencies from an spdx SBOM.
func (Extractor) Ecosystem ¶ added in v0.1.3
Ecosystem returns the OSV Ecosystem of the software extracted by this extractor.
func (Extractor) Extract ¶
func (e Extractor) Extract(ctx context.Context, input *filesystem.ScanInput) ([]*extractor.Inventory, error)
Extract parses the SPDX SBOM and returns a list purls from the SBOM.
func (Extractor) FileRequired ¶
FileRequired returns true if the specified file is a supported spdx file.
func (Extractor) Requirements ¶ added in v0.1.3
func (e Extractor) Requirements() *plugin.Capabilities
Requirements of the extractor.
func (Extractor) ToCPEs ¶
ToCPEs converts an inventory created by this extractor into a list of CPEs.
type Metadata ¶
type Metadata struct { PURL *purl.PackageURL CPEs []string }
Metadata holds parsing information for packages extracted from SPDX files.
Click to show internal directories.
Click to hide internal directories.