intoto

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package intoto defines in-toto statement types for evidence pack attestations.

Index

Constants

View Source
const (
	// StatementType is the in-toto statement type for v1 statements.
	StatementType = "https://in-toto.io/Statement/v1"

	// EvidencePackPredicateType is the predicate type for evidence pack attestations.
	EvidencePackPredicateType = "https://evidencepack.org/attestation/v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EvidencePackPayload

type EvidencePackPayload struct {
	PackDigest string `json:"pack_digest"`
	Stream     string `json:"stream,omitempty"`
}

EvidencePackPayload is the predicate content for evidence pack attestations.

type Statement

type Statement struct {
	Type          string              `json:"_type"`
	Subject       []Subject           `json:"subject"`
	PredicateType string              `json:"predicateType"`
	Predicate     EvidencePackPayload `json:"predicate"`
}

Statement represents an in-toto v1 statement. This is the payload that gets signed in the Sigstore bundle.

type Subject

type Subject struct {
	Name   string            `json:"name"`
	Digest map[string]string `json:"digest"`
}

Subject represents a subject in an in-toto statement.

Jump to

Keyboard shortcuts

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