Documentation
¶
Overview ¶
Package sbom emits SPDX 2.3 JSON and CycloneDX 1.5 JSON software bills of materials for a built pkgx bottle plus its dependency closure.
The package has zero runtime dependencies: documents are built from hand-rolled structs and serialized with encoding/json only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
Name string
Version string
PURL string // package URL, e.g. "pkg:pkgx/openssl.org@1.1.1w"; optional
License string // SPDX license expression/id, e.g. "Apache-2.0"; optional
SHA256 string // lowercase-hex SHA-256 of the component's bottle tarball; optional
}
Component is one package in the bill of materials (a dependency).
type Document ¶
type Document struct {
Name string // subject package, e.g. "openssl.org"
Version string // e.g. "1.1.1w"
PURL string // subject package URL; optional
License string // subject license; optional
SHA256 string // subject bottle digest; optional
Namespace string // stable document identity URI (SPDX documentNamespace)
Created time.Time // build timestamp (rendered as RFC 3339 UTC)
Components []Component // dependency closure
}
Document is a bill of materials whose subject is one built bottle.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
sbom
command
Command sbom emits an SPDX 2.3 or CycloneDX 1.5 JSON bill of materials for a single subject package described by flags.
|
Command sbom emits an SPDX 2.3 or CycloneDX 1.5 JSON bill of materials for a single subject package described by flags. |
|
Package provenance generates SLSA Provenance v1 build attestations wrapped in an in-toto Statement v1.
|
Package provenance generates SLSA Provenance v1 build attestations wrapped in an in-toto Statement v1. |
Click to show internal directories.
Click to hide internal directories.