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(ctx context.Context, root *Component) *cdx.BOM
- func (c *CycloneDX) MarshalComponent(component *Component, components map[string]*cdx.Component, ...) *cdx.Component
- func (c *CycloneDX) Metadata(ctx context.Context) *cdx.Metadata
- func (c *CycloneDX) PackageURL(p *purl.PackageURL) string
- func (c *CycloneDX) Properties(properties []Property) []cdx.Property
- func (c *CycloneDX) Supplier(supplier string) *cdx.OrganizationalEntity
- func (c *CycloneDX) Vulnerabilities(uniq map[string]*cdx.Vulnerability) *[]cdx.Vulnerability
- type Property
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 Group string Version string PackageURL *purl.PackageURL Licenses []string Hashes []digest.Digest Supplier string Properties []Property 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(p *purl.PackageURL) string
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.