Versions in this module Expand all Collapse all v0 v0.0.3 May 31, 2024 Changes in this version + const Namespace + const ToolName + const ToolVendor + func IsTrivySBOM(c *cdx.BOM) bool + func LookupProperty(properties *[]cdx.Property, key string) string + func UnmarshalProperties(properties *[]cdx.Property) map[string]string + type Component struct + Components []*Component + Hashes []digest.Digest + Licenses []string + Name string + PackageURL *purl.PackageURL + Properties map[string]string + Supplier string + Type cdx.ComponentType + Version string + Vulnerabilities []types.DetectedVulnerability + type CycloneDX struct + func NewCycloneDX(version string, opts ...Option) *CycloneDX + func (c *CycloneDX) BOMRef(component *Component) string + func (c *CycloneDX) Components(uniq map[string]*cdx.Component) *[]cdx.Component + func (c *CycloneDX) Dependencies(uniq map[string]*[]string) *[]cdx.Dependency + func (c *CycloneDX) Hashes(hashes []digest.Digest) *[]cdx.Hash + func (c *CycloneDX) Licenses(licenses []string) *cdx.Licenses + func (c *CycloneDX) Marshal(root *Component) *cdx.BOM + func (c *CycloneDX) MarshalComponent(component *Component, components map[string]*cdx.Component, ...) *cdx.Component + func (c *CycloneDX) Metadata() *cdx.Metadata + func (c *CycloneDX) PackageURL(purl *purl.PackageURL) string + func (c *CycloneDX) Properties(props map[string]string) []cdx.Property + func (c *CycloneDX) Supplier(supplier string) *cdx.OrganizationalEntity + func (c *CycloneDX) Vulnerabilities(uniq map[string]*cdx.Vulnerability) *[]cdx.Vulnerability + type NewUUID func() uuid.UUID + type Option func(dx *CycloneDX) + func WithClock(clock clock.Clock) Option + func WithNewUUID(newUUID NewUUID) Option