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

Function checkIP

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

Source from the content-addressed store, hash-verified

607}
608
609func checkIP(e *cel.Env, call, arg ast.Expr) error {
610 pattern := arg.AsLiteral().Value().(string)
611 _, err := parseIPAddr(pattern)
612 return err
613}
614
615func checkCIDR(e *cel.Env, call, arg ast.Expr) error {
616 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