sbom

package
v0.1.18-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Name    string
	Version string
}

Package is one normalized package/version pair parsed from an SBOM document.

func ExtractPackagesFromJSON

func ExtractPackagesFromJSON(raw []byte) ([]Package, error)

ExtractPackagesFromJSON parses one supported SBOM JSON document and returns normalized package/version pairs without attaching producer provenance.

type Row

type Row struct {
	JobID  types.JobID
	RepoID types.RepoID
	Lib    string
	Ver    string
}

Row is one normalized SBOM package row bound to producer identity.

func ExtractRowsFromBundle

func ExtractRowsFromBundle(bundle []byte, jobID types.JobID, repoID types.RepoID) ([]Row, error)

ExtractRowsFromBundle parses supported SBOM files from a gzipped tar bundle and returns normalized rows keyed to the provided job/repo provenance.

func ExtractRowsFromJSON

func ExtractRowsFromJSON(raw []byte, jobID types.JobID, repoID types.RepoID) ([]Row, error)

ExtractRowsFromJSON parses one supported SBOM JSON document and returns normalized rows keyed to the provided job/repo provenance.

Jump to

Keyboard shortcuts

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