bom

package
v0.0.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedPackageType = errors.New("unsupported package type")
)

Formats are all the supported SBOM formats

Functions

func PackagesFromBOM

func PackagesFromBOM(r io.Reader, format Format) ([]types.Package, error)

PackagesFromBOM extracts packages from a supported SBOM format

Types

type Format

type Format string

Format is a supported SBOM format

const (
	FormatCycloneDXJSON Format = "cyclonedx-json"
	FormatCycloneDXXML  Format = "cyclonedx-xml"
	FormatSyftJSON      Format = "syft-json"
)

Jump to

Keyboard shortcuts

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