MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / EncodeJSON

Function EncodeJSON

app/cli/cmd/output/output.go:75–77  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

73}
74
75func EncodeJSON(v interface{}) error {
76 return EncodeJSONToWriter(v, os.Stdout)
77}
78
79func EncodeProtoJSON(v proto.Message) error {
80 options := protojson.MarshalOptions{

Callers 7

encodeAttestationOutputFunction · 0.92
newReferrerDiscoverCmdFunction · 0.92
newPluginListCmdFunction · 0.92
newPluginDescribeCmdFunction · 0.92
newPolicyDevelopEvalCmdFunction · 0.92
NewVersionCmdFunction · 0.92
EncodeOutputFunction · 0.85

Calls 1

EncodeJSONToWriterFunction · 0.85

Tested by

no test coverage detected