Versions in this module Expand all Collapse all v0 v0.1.1 May 2, 2026 v0.1.0 Apr 28, 2026 Changes in this version + const SupplierOrganization + const SupplierPerson + var ErrUnrecognized = errors.New("sbom: unrecognized format") + func Encode(w io.Writer, s *SBOM, f Format) error + type Checksum struct + Algorithm string + Value string + type Component struct + Name string + Type string + Version string + type Creator struct + Name string + Type string + type Document struct + Component Component + Created string + Creators []Creator + DataLicense string + ID string + Name string + Namespace string + SpecVersion string + Supplier string + Type Type + type ExternalRef struct + Category string + Locator string + Type string + type Format int + const FormatCycloneDXJSON + const FormatCycloneDXXML + const FormatSPDXJSON + type Package struct + Checksums []Checksum + Copyright string + Description string + DownloadLocation string + ExternalRefs []ExternalRef + Filename string + Homepage string + ID string + LicenseConcluded string + LicenseDeclared string + Name string + Originator string + OriginatorType string + Properties []Property + Supplier string + SupplierType string + Type string + Version string + func (p *Package) CPE() string + func (p *Package) PURL() string + type Property struct + Name string + Value string + type Relationship struct + Source string + SourceID string + Target string + TargetID string + Type string + type SBOM struct + Document Document + Packages []Package + Relationships []Relationship + SpecVersion string + Type Type + func New(t Type) *SBOM + func Parse(data []byte) (*SBOM, error) + func (s *SBOM) AddPackage(p Package) + type Type string + const TypeCycloneDX + const TypeSPDX + const TypeUnknown + func Detect(data []byte) Type