Documentation
¶
Overview ¶
Package sbom emits CycloneDX 1.5 software bills of materials.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Component ¶
type Component struct {
Type string `json:"type"`
BOMRef string `json:"bom-ref"`
Name string `json:"name"`
Version string `json:"version,omitempty"`
PURL string `json:"purl,omitempty"`
Hashes []Hash `json:"hashes,omitempty"`
Properties []Property `json:"properties,omitempty"`
}
Component is a software component.
type Dependency ¶
Dependency links a component to the components it needs.
type Document ¶
type Document struct {
BOMFormat string `json:"bomFormat"`
SpecVersion string `json:"specVersion"`
SerialNumber string `json:"serialNumber"`
Version int `json:"version"`
Metadata Metadata `json:"metadata"`
Components []Component `json:"components,omitempty"`
Dependencies []Dependency `json:"dependencies"`
}
Document is a CycloneDX 1.5 BOM.
Click to show internal directories.
Click to hide internal directories.