bare

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Overview

Package bare implenta a parser to make non-signed attestations compatible with the ampel policy engine.

Index

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

func (*Envelope) Verify

func (env *Envelope) Verify(_ ...any) error

VerifySignature in bare envelopes never fails but it also always returns nil as its signature verification

type Parser

type Parser struct{}

func New

func New() *Parser

func (*Parser) FileExtensions

func (p *Parser) FileExtensions() []string

FileExtensions returns the file extennsions this parser will look at.

func (*Parser) ParseStream

func (p *Parser) ParseStream(r io.Reader) ([]attestation.Envelope, error)

ParseStream reads an open stream and returns a parsed envelope

Jump to

Keyboard shortcuts

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