Documentation
¶
Overview ¶
Package envtest holds attestation envelopes for tests.
Index ¶
- Variables
- type Unserializable
- func (Unserializable) GetCertificate() attestation.Certificate
- func (Unserializable) GetPredicate() attestation.Predicate
- func (Unserializable) GetSignatures() []attestation.Signature
- func (Unserializable) GetStatement() attestation.Statement
- func (Unserializable) GetVerification() attestation.Verification
- func (Unserializable) MarshalJSON() ([]byte, error)
- func (Unserializable) Verify(...any) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnserializable = errors.New("envelope cannot be serialized")
ErrUnserializable is the error Unserializable fails with.
Functions ¶
This section is empty.
Types ¶
type Unserializable ¶
type Unserializable struct{}
Unserializable is an attestation.Envelope that cannot be serialized to JSON. Storers serialize envelopes before storing them, so it exercises how they handle an envelope that fails on its own.
func (Unserializable) GetCertificate ¶
func (Unserializable) GetCertificate() attestation.Certificate
func (Unserializable) GetPredicate ¶
func (Unserializable) GetPredicate() attestation.Predicate
func (Unserializable) GetSignatures ¶
func (Unserializable) GetSignatures() []attestation.Signature
func (Unserializable) GetStatement ¶
func (Unserializable) GetStatement() attestation.Statement
func (Unserializable) GetVerification ¶
func (Unserializable) GetVerification() attestation.Verification
func (Unserializable) MarshalJSON ¶
func (Unserializable) MarshalJSON() ([]byte, error)
func (Unserializable) Verify ¶
func (Unserializable) Verify(...any) error
Click to show internal directories.
Click to hide internal directories.