Documentation
¶
Index ¶
- type Envelope
- func (env *Envelope) GetCertificate() attestation.Certificate
- func (env *Envelope) GetPredicate() attestation.Predicate
- func (env *Envelope) GetSignatures() []attestation.Signature
- func (env *Envelope) GetStatement() attestation.Statement
- func (env *Envelope) GetVerification() attestation.Verification
- func (env *Envelope) Verify(args ...any) error
- type Parser
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct {
Signatures []attestation.Signature `json:"signatures"`
Statement attestation.Statement `json:"-"`
*sigstoreProtoDSSE.Envelope
}
func (*Envelope) GetCertificate ¶
func (env *Envelope) GetCertificate() attestation.Certificate
func (*Envelope) GetPredicate ¶
func (env *Envelope) GetPredicate() attestation.Predicate
func (*Envelope) GetSignatures ¶
func (env *Envelope) GetSignatures() []attestation.Signature
func (*Envelope) GetStatement ¶
func (env *Envelope) GetStatement() attestation.Statement
GetStatement parses the envelope state, stetement.
func (*Envelope) GetVerification ¶
func (env *Envelope) GetVerification() attestation.Verification
GetVerifications returns the envelop signtature verifications
func (*Envelope) Verify ¶
Verify checks the payload using the supplied signatures. The function takes either a slice of, or individual key.PublicKeyProvider objects. For more information see the carabiner signer public key library:
https://github.com/carabiner-dev/signer/blob/main/key/public.go
No signatures should not return an error, a verification status is returned but without any identities matched.
type Parser ¶
type Parser struct{}
Parser for attestations wrapped in DSSE envelopes
func (*Parser) FileExtensions ¶
FileExtensions returns the file extennsions this parser will look at.
func (*Parser) ParseStream ¶
ParseFile parses a file and returns all envelopes in it.
Click to show internal directories.
Click to hide internal directories.