Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContractViolation ¶
type ContractViolation struct {
Path string // The input.* path that was referenced (e.g., "input.metadata.name")
Location string // Location in the policy file (e.g., "policy.rego:12:5")
}
ContractViolation represents a policy reference that doesn't exist in the schema.
func CheckContract ¶
CheckContract validates that all input.* references in a Rego policy exist in the provided CUE schema. Returns a list of contract violations (empty if all references are valid).
func (ContractViolation) Error ¶
func (v ContractViolation) Error() string
Error implements the error interface.
Click to show internal directories.
Click to hide internal directories.