cyclonedxhelpers

package
v2.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README

Source

The contents of this directory is largely based on anchore/syft's internal cyclonedxhelpers package. The version copied is from an old commit of Syft that supports CycloneDX JSON Schema 1.3.

Any helpers here remain because they contain 1.3-specific logic, so we cannot use upstream code.

The implementation of decoder has been omitted for simplicity, since it is not required for buildpacks' SBOM generation.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CycloneDXFields = common.RequiredTag("cyclonedx")
)

Relies on cycloneDX published structs

Functions

func ToFormatModel

func ToFormatModel(s sbom.SBOM) *cyclonedx.BOM

We must keep a copy of this helper instead of using the upstream because it references CycloneDX 1.3 which we also have to keep a copy of internally

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL