bundle

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Overview

Packager bundle provides functionality to work with the sigstore budle format

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	sigstore.Bundle
	Signatures []attestation.Signature
	Statement  attestation.Statement
}

func (*Envelope) GetCertificate

func (e *Envelope) GetCertificate() attestation.Certificate

func (*Envelope) GetPredicate

func (env *Envelope) GetPredicate() attestation.Predicate

func (*Envelope) GetSignatures

func (e *Envelope) GetSignatures() []attestation.Signature

func (*Envelope) GetStatement

func (e *Envelope) GetStatement() attestation.Statement

func (*Envelope) GetStatementOrErr

func (e *Envelope) GetStatementOrErr() (attestation.Statement, error)

func (*Envelope) GetVerification

func (env *Envelope) GetVerification() attestation.Verification

GetVerifications returns the signtature verifications stored in the predicate (via the statement)

func (*Envelope) UnmarshalJSON

func (e *Envelope) UnmarshalJSON(data []byte) error

func (*Envelope) Verify

func (e *Envelope) Verify() error

Verify checks the bundle signatures and generatesit Verification data. If the envelope is already verified, the signatures are not verified again.

type Parser

type Parser struct{}

func (*Parser) FileExtensions

func (p *Parser) FileExtensions() []string

FileExtensions returns the file extennsions this parser will look at.

func (*Parser) Parse

func (p *Parser) Parse(data []byte) ([]attestation.Envelope, error)

func (*Parser) ParseFile

func (p *Parser) ParseFile(path string) ([]attestation.Envelope, error)

ParseFile parses a sigstore bundle and returns the envelope

func (*Parser) ParseStream

func (p *Parser) ParseStream(r io.Reader) ([]attestation.Envelope, error)

ParseFile parses a file and returns all envelopes in it.

Jump to

Keyboard shortcuts

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