contextproof

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	EnvelopeSchemaID      = "gait.context.envelope"
	EnvelopeSchemaVersion = "1.0.0"
	BudgetSchemaID        = "gait.context.budget_report"
	BudgetSchemaVersion   = "1.0.0"
	MaxEnvelopeBytes      = int64(1024 * 1024)

	EvidenceModeBestEffort = "best_effort"
	EvidenceModeRequired   = "required"

	PrivacyModeMetadata = "metadata"
	PrivacyModeHashes   = "hashes"
	PrivacyModeRaw      = "raw"
)

Variables

This section is empty.

Functions

func ApplyEnvelopeToRefs

func ApplyEnvelopeToRefs(refs *schemarunpack.Refs, envelope schemacontext.Envelope)

func ClassifyRefsDrift

func ClassifyRefsDrift(left schemarunpack.Refs, right schemarunpack.Refs) (string, bool, bool, error)

func ContextSetDigest

func ContextSetDigest(records []schemacontext.ReferenceRecord) (string, error)

func DigestEnvelope

func DigestEnvelope(envelope schemacontext.Envelope) (string, error)

func EnvelopeFromRefs

func EnvelopeFromRefs(refs schemarunpack.Refs) (schemacontext.Envelope, bool, error)

func LoadEnvelope

func LoadEnvelope(path string) (schemacontext.Envelope, error)

func NormalizeEnvelope

func NormalizeEnvelope(input schemacontext.Envelope) (schemacontext.Envelope, error)

func NormalizeEvidenceMode

func NormalizeEvidenceMode(mode string) (string, error)

func NormalizePrivacyMode

func NormalizePrivacyMode(mode string) (string, error)

func NormalizeRefs

func NormalizeRefs(refs schemarunpack.Refs) (schemarunpack.Refs, error)

func ParseEnvelope

func ParseEnvelope(payload []byte) (schemacontext.Envelope, error)

func TransformEnvelopePrivacy

func TransformEnvelopePrivacy(envelope schemacontext.Envelope, mode string) (schemacontext.Envelope, error)

func VerifyEnvelope

func VerifyEnvelope(envelope schemacontext.Envelope) error

Types

type BuildEnvelopeOptions

type BuildEnvelopeOptions struct {
	ContextSetID    string
	EvidenceMode    string
	ProducerVersion string
	CreatedAt       time.Time
}

Jump to

Keyboard shortcuts

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