MCPcopy
hub / github.com/aquasecurity/trivy / JSONWriter

Struct JSONWriter

pkg/report/json.go:16–20  ·  view source on GitHub ↗

JSONWriter implements result Writer

Source from the content-addressed store, hash-verified

14
15// JSONWriter implements result Writer
16type JSONWriter struct {
17 Output io.Writer
18 ListAllPkgs bool
19 ShowSuppressed bool
20}
21
22// Write writes the results in JSON format
23func (jw JSONWriter) Write(_ context.Context, report types.Report) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected