Documentation
¶
Overview ¶
Package attribution transports bounded trusted identity and runtime correlation. Value, Policy, NewPolicy, Policy.Validate, WithContext, FromContext, WithCorrelation, Producer and Error are designated protected surfaces. This package performs no authentication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContext ¶
Types ¶
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
type Producer ¶
Producer is explicitly injected by a trusted distribution, never chosen by a header. It may establish subject/tenant and allowlisted attributes; core correlation wins.
type Value ¶
type Value struct {
Subject string `json:"subject,omitempty"`
Tenant string `json:"tenant,omitempty"`
RouteID string `json:"route_id,omitempty"`
AgentID string `json:"agent_id,omitempty"`
RunID string `json:"run_id,omitempty"`
VirtualKeyID string `json:"virtual_key_id,omitempty"`
TraceID string `json:"trace_id,omitempty"`
SpanID string `json:"span_id,omitempty"`
ParentSpanID string `json:"parent_span_id,omitempty"`
Attributes map[string]string `json:"attributes,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.