intoto

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnwrapDSSE

func UnwrapDSSE(raw []byte) ([]byte, error)

UnwrapDSSE checks if raw JSON is a DSSE envelope and, if so, decodes and returns the inner payload. If the data is not a DSSE envelope, it is returned unchanged.

Types

type Envelope

type Envelope struct {
	PayloadType string `json:"payloadType"`
	Payload     string `json:"payload"`
}

Envelope represents a DSSE signed envelope.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL