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.
Click to show internal directories.
Click to hide internal directories.