package attestation

import "github.com/moby/buildkit/exporter/attestation"

Index

Functions

func MakeInTotoStatements

func MakeInTotoStatements(ctx context.Context, s session.Group, refs map[string]cache.ImmutableRef, attestations []result.Attestation, defaultSubjects []intoto.Subject) ([]intoto.Statement, error)

MakeInTotoStatements iterates over all provided result attestations and generates intoto attestation statements.

func ReadAll

func ReadAll(ctx context.Context, s session.Group, refs map[string]cache.ImmutableRef, att result.Attestation) ([]byte, error)

ReadAll reads the content of an attestation.

func Unbundle

func Unbundle(ctx context.Context, s session.Group, refs map[string]cache.ImmutableRef, bundled []result.Attestation) ([]result.Attestation, error)

Unbundle iterates over all provided result attestations and un-bundles any bundled attestations by loading them from the provided refs map.

Source Files

make.go unbundle.go

Version
v0.11.0-rc1
Published
Nov 24, 2022
Platform
js/wasm
Imports
13 packages
Last checked
3 minutes ago

Tools for package owners.