bundle

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(envelope 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