Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxIDLength = 255 MaxNameLength = 512 MaxFieldLength = 4096 )
Variables ¶
View Source
var ( // Must start with lowercase letter or digit, then only lowercase letters, // digits, dots, hyphens, and underscores. IDFormat = regexp.MustCompile(`^[a-z0-9][a-z0-9._-]*$`) ValidRiskTiers = []string{"low", "medium", "high"} ValidStatuses = []string{"active", "inactive", "deprecated"} ValidGrantStatuses = []string{"active", "suspended", "revoked", "expired"} ValidFailModes = []string{"open", "closed"} ValidAgentTypes = []string{"llm_agent", "workflow", "automation", "copilot", "rpa"} ValidConsequenceTypes = []string{"monetary", "risk_rating"} )
Functions ¶
func ValidateBundle ¶
func ValidateBundle(docs []parser.ParsedDocument) []types.ValidationError
ValidateBundle validates a set of parsed documents. It performs: - per-document validation - duplicate IDs of the same kind within the same bundle - document index annotation for user-facing errors
func ValidateDocument ¶
func ValidateDocument(doc parser.ParsedDocument) []types.ValidationError
ValidateDocument validates a single parsed control-plane document. Parser-owned checks such as apiVersion/kind presence/support are intentionally not repeated here.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.