package attestation
import "github.com/moby/buildkit/exporter/attestation"
Index ¶
- func Filter(attestations []exporter.Attestation, include map[string][]byte, exclude map[string][]byte) []exporter.Attestation
- func MakeInTotoStatements(ctx context.Context, s session.Group, attestations []exporter.Attestation, defaultSubjects []intoto.Subject) ([]intoto.Statement, error)
- func ReadAll(ctx context.Context, s session.Group, att exporter.Attestation) ([]byte, error)
- func Unbundle(ctx context.Context, s session.Group, bundled []exporter.Attestation) ([]exporter.Attestation, error)
- func Validate(atts []exporter.Attestation) error
Functions ¶
func Filter ¶
func Filter(attestations []exporter.Attestation, include map[string][]byte, exclude map[string][]byte) []exporter.Attestation
func MakeInTotoStatements ¶
func MakeInTotoStatements(ctx context.Context, s session.Group, attestations []exporter.Attestation, defaultSubjects []intoto.Subject) ([]intoto.Statement, error)
MakeInTotoStatements iterates over all provided result attestations and generates intoto attestation statements.
func ReadAll ¶
ReadAll reads the content of an attestation.
func Unbundle ¶
func Unbundle(ctx context.Context, s session.Group, bundled []exporter.Attestation) ([]exporter.Attestation, error)
Unbundle iterates over all provided result attestations and un-bundles any bundled attestations by loading them from the provided refs map.
func Validate ¶
func Validate(atts []exporter.Attestation) error
Source Files ¶
- Version
- v0.13.2
- Published
- Apr 25, 2024
- Platform
- js/wasm
- Imports
- 15 packages
- Last checked
- 3 minutes ago –
Tools for package owners.