bundle

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool struct{}

func NewTool

func NewTool() *Tool

func (*Tool) ExtractAttestation

func (t *Tool) ExtractAttestation(bndl attestation.Envelope) (attestation.Statement, error)

ExtractAttestation returns a strut with the data decoded from the bundle contents JSON.

func (*Tool) ExtractAttestationJSON

func (t *Tool) ExtractAttestationJSON(bundle *protobundle.Bundle) ([]byte, error)

ExtractAttestationJSON returns the attestation JSON enclosed in the bundle

func (*Tool) ExtractPredicate

func (t *Tool) ExtractPredicate(bndl attestation.Envelope) (attestation.Predicate, error)

ExtractPredicate returns the attestation predicate data

func (*Tool) ExtractPredicateJSON

func (t *Tool) ExtractPredicateJSON(env attestation.Envelope) ([]byte, error)

ExtractPredicateJSON is akin to ExtractPredicate but returns the predicated marshalled as JSON

func (*Tool) ExtractPredicateType

func (t *Tool) ExtractPredicateType(bndl attestation.Envelope) (string, error)

ExtractPredicateType returns a string with the attestation predicate type

func (*Tool) ParseAttestation

func (t *Tool) ParseAttestation(r io.Reader) (attestation.Statement, error)

ParseAttestation reads an attestation from the Reader r and

func (*Tool) ParseBundle

func (t *Tool) ParseBundle(r io.Reader) (attestation.Envelope, error)

Parse reades the budle data from reader r and decodes it into

Jump to

Keyboard shortcuts

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