- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsIPv4String (0.23 sec)
-
pkg/registry/core/service/storage/alloc.go
return false } return len(newSvc.Spec.IPFamilies) < len(oldSvc.Spec.IPFamilies) } // Helper to get the IP family of a given IP. func familyOf(ip string) api.IPFamily { if netutils.IsIPv4String(ip) { return api.IPv4Protocol } if netutils.IsIPv6String(ip) { return api.IPv6Protocol } return api.IPFamily("unknown")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:05 UTC 2023 - 37.3K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods.go
var validPrimaryIP, validSecondaryIP func(ip string) bool if len(kl.nodeIPs) == 0 || utilnet.IsIPv4(kl.nodeIPs[0]) { validPrimaryIP = utilnet.IsIPv4String validSecondaryIP = utilnet.IsIPv6String } else { validPrimaryIP = utilnet.IsIPv6String validSecondaryIP = utilnet.IsIPv4String } for _, ip := range podIPs { if validPrimaryIP(ip) { ips = append(ips, ip) break } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 101.2K bytes - Viewed (0)