mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 08:53:15 +01:00
17 lines
405 B
Go
17 lines
405 B
Go
package cyclonedx13json
|
|
|
|
import (
|
|
"github.com/CycloneDX/cyclonedx-go"
|
|
"github.com/anchore/syft/internal/formats/common/cyclonedxhelpers"
|
|
"github.com/anchore/syft/syft/format"
|
|
)
|
|
|
|
func Format() format.Format {
|
|
return format.NewFormat(
|
|
format.CycloneDxJSONOption,
|
|
encoder,
|
|
cyclonedxhelpers.GetDecoder(cyclonedx.BOMFileFormatJSON),
|
|
cyclonedxhelpers.GetValidator(cyclonedx.BOMFileFormatJSON),
|
|
)
|
|
}
|