Documentation ¶
Overview ¶
Package sbom implements standardized SBoM tooling that allows multiple SBoM formats to be generated from the same scanning information.
Index ¶
Constants ¶
const ( CycloneDXFormat = "application/vnd.cyclonedx+json" SPDXFormat = "application/spdx+json" SyftFormat = "application/vnd.syft+json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format string
Format is the type declaration for the supported SBoM output formats.
type FormattedReader ¶
type FormattedReader struct {
// contains filtered or unexported fields
}
FormattedReader outputs the SBoM in a specified format.
func NewFormattedReader ¶
func NewFormattedReader(s SBOM, f Format) *FormattedReader
NewFormattedReader creates an instance of FormattedReader given an SBOM and Format.
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter implements the packit.SBOMFormatter interface.
type SBOM ¶
type SBOM struct {
// contains filtered or unexported fields
}
SBOM holds the internal representation of the generated software bill-of-materials. This type can be combined with a FormattedReader to output the SBoM in a number of file formats.
func GenerateFromDependency ¶
func GenerateFromDependency(dependency postal.Dependency, path string) (SBOM, error)
GenerateFromDependency returns a populated SBOM given a postal.Dependency and the directory path where the dependency will be located within the application image.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
spdxlicense
Code generated by go generate; DO NOT EDIT.
|
Code generated by go generate; DO NOT EDIT. |
version
Package version contains all build time metadata (version, build time, git commit, etc).
|
Package version contains all build time metadata (version, build time, git commit, etc). |