Documentation ¶
Overview ¶
Package sbom captures the internal data model of the SBOMs melange produces into a private, generalized bill of materials model (with relationship data) designed to be transcoded to specific formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAndWrite ¶ added in v0.11.3
GenerateAndWrite creates an SBOM for the APK package described by the given Spec and writes the SBOM to the APK's filesystem.
Types ¶
type Spec ¶
type Spec struct { PackageName string PackageVersion string License string // Full SPDX license expression LicensingInfos map[string]string ExternalRefs []purl.PackageURL Copyright string Namespace string Arch string SourceDateEpoch time.Time }
Spec describes the metadata of an APK package for which an SBOM should be created.
Click to show internal directories.
Click to hide internal directories.