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

Function checkIP

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

Source from the content-addressed store, hash-verified

646}
647
648func checkIP(e *cel.Env, call, arg ast.Expr) error {
649 pattern := arg.AsLiteral().Value().(string)
650 _, err := parseIPAddr(pattern)
651 return err
652}
653
654func checkCIDR(e *cel.Env, call, arg ast.Expr) error {
655 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