attestation

package
v0.6.58 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Make it visible elsewhere
	PredicateSLSAProvenance = v02.PredicateSLSAProvenance
)
View Source
const (
	PredicateSpdxDocument = "https://spdx.dev/Document"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestation

type Attestation interface {
	Type() string
	PredicateType() string
	Statement() []byte
	Signatures() []signature.EntitySignature
	Subject() []in_toto.Subject
}

Attestation holds the raw attestation data, usually fetched from the signature envelope's payload; statement of a particular type and any signing information.

func ProvenanceFromSignature

func ProvenanceFromSignature(sig oci.Signature) (Attestation, error)

ProvenanceFromSignature parses an attestation layer from the provided OCI layer. Expects that the layer contains DSSE JSON with an embedded attestation of some type or other.

func SLSAProvenanceFromSignature

func SLSAProvenanceFromSignature(sig oci.Signature) (Attestation, error)

SLSAProvenanceFromSignature parses the SLSA Provenance v0.2 from the provided OCI layer. Expects that the layer contains DSSE JSON with the embedded SLSA Provenance v0.2 payload.

Jump to

Keyboard shortcuts

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