Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFailedToGetCycloneDXSBOM = errors.New("failed to get CycloneDX SBOM from file")
Functions ¶
func CycloneDxToBytes ¶
func CycloneDxToBytes(sbom *cdx.BOM, format SbomFormat) ([]byte, error)
Types ¶
type SbomFormat ¶
type SbomFormat uint
const ( Unknown SbomFormat = iota CycloneDxJSON CycloneDxXML SpdxJSON SpdxTV SyftJSON )
func StringToSbomFormat ¶
func StringToSbomFormat(input string) (SbomFormat, error)
func (SbomFormat) String ¶
func (c SbomFormat) String() string
Click to show internal directories.
Click to hide internal directories.