Documentation
¶
Overview ¶
Packager bundle provides functionality to work with the sigstore budle format
Index ¶
- type Envelope
- func (e *Envelope) GetCertificate() attestation.Certificate
- func (env *Envelope) GetPredicate() attestation.Predicate
- func (e *Envelope) GetSignatures() []attestation.Signature
- func (e *Envelope) GetStatement() attestation.Statement
- func (e *Envelope) GetStatementOrErr() (attestation.Statement, error)
- func (env *Envelope) GetVerification() attestation.Verification
- func (e *Envelope) UnmarshalJSON(data []byte) error
- func (e *Envelope) Verify() error
- type Parser
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 ¶
type Parser ¶
type Parser struct{}
func (*Parser) FileExtensions ¶
FileExtensions returns the file extennsions this parser will look at.
func (*Parser) ParseFile ¶
func (p *Parser) ParseFile(path string) ([]attestation.Envelope, error)
ParseFile parses a sigstore bundle and returns the envelope
func (*Parser) ParseStream ¶
ParseFile parses a file and returns all envelopes in it.
Click to show internal directories.
Click to hide internal directories.