Documentation
¶
Overview ¶
Package sbom builds provenance and software-bill-of-material graphs from Atmos lock files and supported dependency adapters.
Index ¶
Constants ¶
View Source
const ( FormatCycloneDXJSON = "cyclonedx-json" FormatSPDXJSON = "spdx-json" ModeProvenance = "provenance" ModeNTIA = "ntia" // ScopeTerraform selects Terraform provider and module evidence (the CLI's default scope). ScopeTerraform = "terraform" // ScopeDependencies selects toolchain and version-track lock evidence instead of Terraform. ScopeDependencies = "dependencies" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Component ¶
type Component struct {
ID string
Name string
Version string
Type string
PURL string
Source string
SHA256 string
Supplier string
Properties map[string]string
}
Component is a normalized node shared by all adapters and renderers.
type Coverage ¶
type Coverage struct {
Adapter string
Status string // complete, incomplete, unavailable
Detail string
}
Coverage records whether an adapter had sufficient stable evidence for the selected scope. An unavailable adapter is visible in provenance output and prevents NTIA-mode output.
type Graph ¶
type Graph struct {
Subject Subject
Components []Component
Relationships []Relationship
Coverage []Coverage
}
func BuildWithOptions ¶
type Relationship ¶
Click to show internal directories.
Click to hide internal directories.