mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 06:56:40 +01:00
19 lines
285 B
Go
19 lines
285 B
Go
package syftjson
|
|
|
|
import (
|
|
"github.com/anchore/syft/internal"
|
|
"github.com/anchore/syft/syft/sbom"
|
|
)
|
|
|
|
const ID sbom.FormatID = "syft-json"
|
|
|
|
func Format() sbom.Format {
|
|
return sbom.NewFormat(
|
|
internal.JSONSchemaVersion,
|
|
encoder,
|
|
decoder,
|
|
validator,
|
|
ID, "json", "syft",
|
|
)
|
|
}
|