Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeJSON(r io.Reader) (*cdx.BOM, error)
- func IsTrivySBOM(c *cdx.BOM) bool
- type BOM
- type Marshaler
- func (*Marshaler) Hashes(files []core.File) *[]cdx.Hash
- func (*Marshaler) Licenses(licenses []string) *cdx.Licenses
- func (m *Marshaler) Marshal(ctx context.Context, bom *core.BOM) (*cdx.BOM, error)
- func (m *Marshaler) MarshalComponent(component *core.Component) (*cdx.Component, error)
- func (m *Marshaler) MarshalReport(ctx context.Context, report types.Report) (*cdx.BOM, error)
- func (m *Marshaler) MarshalRoot() (*cdx.Component, error)
- func (m *Marshaler) Metadata(ctx context.Context) *cdx.Metadata
- func (*Marshaler) PackageURL(p *packageurl.PackageURL) string
- func (*Marshaler) Properties(properties []core.Property) *[]cdx.Property
- func (*Marshaler) Supplier(supplier string) *cdx.OrganizationalEntity
Constants ¶
View Source
const ( ToolVendor = "aquasecurity" ToolName = "trivy" Namespace = ToolVendor + ":" + ToolName + ":" )
Variables ¶
View Source
var (
ErrUnsupportedType = errors.New("unsupported type")
)
Functions ¶
func IsTrivySBOM ¶ added in v0.50.0
Types ¶
type BOM ¶ added in v0.42.0
func (*BOM) UnmarshalJSON ¶ added in v0.42.0
type Marshaler ¶
type Marshaler struct {
// contains filtered or unexported fields
}
func NewMarshaler ¶
func (*Marshaler) MarshalComponent ¶ added in v0.50.0
func (*Marshaler) MarshalReport ¶ added in v0.42.0
MarshalReport converts the Trivy report to the CycloneDX format
func (*Marshaler) MarshalRoot ¶ added in v0.50.0
func (*Marshaler) PackageURL ¶ added in v0.50.0
func (*Marshaler) Properties ¶ added in v0.50.0
Click to show internal directories.
Click to hide internal directories.