Documentation ¶
Index ¶
- Constants
- func IsTrivySBOM(c *cdx.BOM) bool
- func LookupProperty(properties *[]cdx.Property, key string) string
- func UnmarshalProperties(properties *[]cdx.Property) map[string]string
- type Component
- type 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
- type Option
Constants ¶
View Source
const ( ToolVendor = "aquasecurity" ToolName = "trivy" Namespace = ToolVendor + ":" + ToolName + ":" )
Variables ¶
This section is empty.
Functions ¶
func IsTrivySBOM ¶
Types ¶
type Component ¶
type Component struct { Type cdx.ComponentType Name string Version string PackageURL *purl.PackageURL Licenses []string Hashes []digest.Digest Supplier string Properties map[string]string Components []*Component Vulnerabilities []types.DetectedVulnerability }
type CycloneDX ¶
type CycloneDX struct {
// contains filtered or unexported fields
}
func NewCycloneDX ¶
func (*CycloneDX) Components ¶
func (*CycloneDX) Dependencies ¶
func (c *CycloneDX) Dependencies(uniq map[string]*[]string) *[]cdx.Dependency
func (*CycloneDX) MarshalComponent ¶
func (*CycloneDX) PackageURL ¶
func (c *CycloneDX) PackageURL(purl *purl.PackageURL) string
func (*CycloneDX) Properties ¶
func (*CycloneDX) Supplier ¶
func (c *CycloneDX) Supplier(supplier string) *cdx.OrganizationalEntity
func (*CycloneDX) Vulnerabilities ¶
func (c *CycloneDX) Vulnerabilities(uniq map[string]*cdx.Vulnerability) *[]cdx.Vulnerability
Click to show internal directories.
Click to hide internal directories.