contextproof

package
v1.2.6 Latest Latest
Warning

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

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

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