envtest

package
v0.3.17 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package envtest holds attestation envelopes for tests.

Index

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

Jump to

Keyboard shortcuts

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