celdp

package
v0.0.0-...-8e3327d Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareErrors

func CompareErrors(a, b CELError) int

CompareErrors for deterministic selection per Spec 6.9.

Types

type CELDPEvaluator

type CELDPEvaluator struct {
	// contains filtered or unexported fields
}

func NewEvaluator

func NewEvaluator() (*CELDPEvaluator, error)

func (*CELDPEvaluator) Evaluate

func (e *CELDPEvaluator) Evaluate(expr string, input interface{}) (*CELDPResult, error)

type CELDPIssue

type CELDPIssue struct {
	Message  string
	Severity string // ERROR
}

type CELDPResult

type CELDPResult struct {
	Value interface{}
	Error *CELError
}

type CELDPValidationResult

type CELDPValidationResult struct {
	Valid  bool
	Issues []CELDPIssue
}

type CELDPValidator

type CELDPValidator struct {
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator() (*CELDPValidator, error)

func (*CELDPValidator) Validate

func (v *CELDPValidator) Validate(exprSource string) (*CELDPValidationResult, error)

type CELError

type CELError struct {
	ErrorCode       string `json:"error_code"`
	JSONPointerPath string `json:"json_pointer_path"`
	Message         string `json:"message"`
}

func (*CELError) Initial

func (e *CELError) Initial() string

Jump to

Keyboard shortcuts

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