attestation

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PredicateURIType = map[string]string{
	"https://slsa.dev/provenance/":                         "provenance",
	"https://in-toto.io/attestation/vulns":                 "vuln",
	"https://slsa.dev/verification_summary/v1":             "vsa",
	"https://in-toto.io/attestation/test-result/":          "test-result",
	"https://spdx.dev/Document":                            "spdx",
	"https://spdx.github.io/spdx-spec":                     "spdx",
	"https://in-toto.io/attestation/scai/attribute-report": "scai",
	"https://in-toto.io/attestation/runtime-trace/":        "runtime-trace",
	"https://in-toto.io/attestation/release":               "release",
	"https://in-toto.io/attestation/link":                  "link",
	"https://cyclonedx.org/bom":                            "cdx",
	"https://cyclonedx.org/specification/overview/":        "cdx",
}

PredicateURIType is a map of predicate URIs to the type of predicate they are

Functions

func GetRelevantStatements

func GetRelevantStatements(psMap map[string][]intoto.Statement, predType string, subject string) []intoto.Statement

GetRelevantStatements returns the predicate for the given predicate type and subject

func ValidateInTotoStatement

func ValidateInTotoStatement(file []byte) (map[string][]intoto.Statement, error)

ValidateInTotoStatement validates the in-toto statement in the byte array

Types

This section is empty.

Jump to

Keyboard shortcuts

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