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

Function encodeBundle

app/cli/pkg/action/attestation_push.go:325–327  ·  view source on GitHub ↗
(b *protobundle.Bundle)

Source from the content-addressed store, hash-verified

323}
324
325func encodeBundle(b *protobundle.Bundle) ([]byte, error) {
326 return protojson.Marshal(b)
327}
328
329func decodeEnvelope(rawEnvelope []byte) (*dsse.Envelope, error) {
330 envelope := &dsse.Envelope{}

Callers 2

saveBundleMethod · 0.85
pushToControlPlaneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected