MCPcopy Create free account
hub / github.com/cel-expr/cel-go / checkIP

Function checkIP

ext/network.go:674–678  ·  view source on GitHub ↗
(e *cel.Env, call, arg ast.Expr)

Source from the content-addressed store, hash-verified

672}
673
674func checkIP(e *cel.Env, call, arg ast.Expr) error {
675 pattern := arg.AsLiteral().Value().(string)
676 _, err := parseIPAddr(pattern)
677 return err
678}
679
680func checkCIDR(e *cel.Env, call, arg ast.Expr) error {
681 pattern := arg.AsLiteral().Value().(string)

Callers

nothing calls this directly

Calls 3

parseIPAddrFunction · 0.85
ValueMethod · 0.65
AsLiteralMethod · 0.65

Tested by

no test coverage detected