InNetwork returns true if the proxy is on the given network, or if either the proxy's network or the given network is unspecified ("").
(network network.ID)
| 419 | // InNetwork returns true if the proxy is on the given network, or if either |
| 420 | // the proxy's network or the given network is unspecified (""). |
| 421 | func (node *Proxy) InNetwork(network network.ID) bool { |
| 422 | return node == nil || identifier.IsSameOrEmpty(network.String(), node.Metadata.Network.String()) |
| 423 | } |
| 424 | |
| 425 | // InCluster returns true if the proxy is in the given cluster, or if either |
| 426 | // the proxy's cluster id or the given cluster id is unspecified (""). |
no test coverage detected