Equal implements the CEL ref.Val.Equal. See https://pkg.go.dev/github.com/google/cel-go/common/types/ref#Val
(other ref.Val)
| 105 | // |
| 106 | // See https://pkg.go.dev/github.com/google/cel-go/common/types/ref#Val |
| 107 | func (ip IPAddress) Equal(other ref.Val) ref.Val { |
| 108 | otherip, ok := other.(IPAddress) |
| 109 | if !ok { |
| 110 | return types.NoSuchOverloadErr() |
| 111 | } |
| 112 | |
| 113 | return types.Bool(ip.addr.Compare(otherip.addr) == 0) |
| 114 | } |
| 115 | |
| 116 | // Type implements the CEL ref.Val.Type. |
| 117 | // |
no outgoing calls