MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / SwidJson

Function SwidJson

cmd/format/swid.go:78–82  ·  view source on GitHub ↗
(report Report, out string)

Source from the content-addressed store, hash-verified

76}
77
78func SwidJson(report Report, out string) {
79 swidZip(out, report, func(tag *swid.SoftwareIdentity, w io.Writer) error {
80 return json.NewEncoder(w).Encode(tag)
81 })
82}
83
84func SwidXml(report Report, out string) {
85 swidZip(out, report, func(tag *swid.SoftwareIdentity, w io.Writer) error {

Callers 1

SaveFunction · 0.85

Calls 2

swidZipFunction · 0.85
EncodeMethod · 0.80

Tested by

no test coverage detected