vsa10

package
v2.6.0-dev.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const PredicateType = "https://slsa.dev/verification_summary/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Predicate

type Predicate struct {
	Verifier           Verifier                          `json:"verifier"`
	TimeVerified       time.Time                         `json:"timeVerified"`
	ResourceURI        string                            `json:"resourceUri"`
	Policy             intotoCommon.ProvenanceMaterial   `json:"policy"`
	InputAttestations  []intotoCommon.ProvenanceMaterial `json:"inputAttestations"`
	VerificationResult string                            `json:"verificationResult"`
	VerifiedLevels     []string                          `json:"verifiedLevels"`
	DependecyLevels    map[string]int                    `json:"dependencyLevels"`
	SlsaVersion        string                            `json:"slsaVersion"`
}

Predicate is the VSA predicate.

type VSA

type VSA struct {
	intotoGolang.StatementHeader
	// Predicate is the VSA predicate.
	Predicate Predicate `json:"predicate"`
}

VSA is a struct that represents a VSA statement. spec: https://slsa.dev/spec/v1.0/verification_summary. Idealy, we use "github.com/in-toto/attestation/go/predicates/vsa/v1"'s VerfificationSummary, but it currently does not correctly implement some fields according to spec, such as VerifiedLevels.

func VSAFromStatement

func VSAFromStatement(statement *intotoGolang.Statement) (*VSA, error)

VSAFromStatement creates a VSA from a statement.

type Verifier

type Verifier struct {
	ID      string            `json:"id"`
	Version map[string]string `json:"version"`
}

Verifier is the VSA verifier.

Jump to

Keyboard shortcuts

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