Documentation
¶
Overview ¶
Package bare implenta a parser to make non-signed attestations compatible with the ampel policy engine.
Index ¶
- type Envelope
- func (env *Envelope) GetCertificate() attestation.Certificate
- func (env *Envelope) GetPredicate() attestation.Predicate
- func (*Envelope) GetSignatures() []attestation.Signature
- func (env *Envelope) GetStatement() attestation.Statement
- func (*Envelope) GetVerification() attestation.Verification
- func (env *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 {
Statement attestation.Statement
}
func (*Envelope) GetCertificate ¶
func (env *Envelope) GetCertificate() attestation.Certificate
func (*Envelope) GetPredicate ¶
func (env *Envelope) GetPredicate() attestation.Predicate
func (*Envelope) GetSignatures ¶
func (*Envelope) GetSignatures() []attestation.Signature
func (*Envelope) GetStatement ¶
func (env *Envelope) GetStatement() attestation.Statement
func (*Envelope) GetVerification ¶
func (*Envelope) GetVerification() attestation.Verification
GetVerifications returns always empty as they are by definition unsigned
type Parser ¶
type Parser struct{}
func (*Parser) FileExtensions ¶
FileExtensions returns the file extennsions this parser will look at.
func (*Parser) ParseStream ¶
ParseStream reads an open stream and returns a parsed envelope
Click to show internal directories.
Click to hide internal directories.