- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 34 for IsUnspecified (0.25 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/library/ip_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 12:03:07 UTC 2023 - 8.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/ip.go
// ip('::1').family() // returns '6' // ip('127.0.0.1').family() == 4 // returns true // ip('::1').family() == 6 // returns true // ip('0.0.0.0').isUnspecified() // returns true // ip('127.0.0.1').isUnspecified() // returns false // ip('::').isUnspecified() // returns true // ip('::1').isUnspecified() // returns false // ip('127.0.0.1').isLoopback() // returns true // ip('192.168.0.1').isLoopback() // returns false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 11:02:34 UTC 2023 - 9.8K bytes - Viewed (0) -
src/net/example_test.go
ipv4Unspecified := net.ParseIP("0.0.0.0") ipv4Specified := net.ParseIP("8.8.8.8") fmt.Println(ipv6Unspecified.IsUnspecified()) fmt.Println(ipv6Specified.IsUnspecified()) fmt.Println(ipv4Unspecified.IsUnspecified()) fmt.Println(ipv4Specified.IsUnspecified()) // Output: // true // false // true // false } func ExampleIP_Mask() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 13 16:36:59 UTC 2021 - 8.5K bytes - Viewed (0) -
src/net/netip/fuzz_test.go
} if ip.IsPrivate() != stdip.IsPrivate() { t.Errorf("Addr.IsPrivate() != net.IP.IsPrivate(): ip=%q stdip=%q", ip, stdip) } if ip.IsUnspecified() != stdip.IsUnspecified() { t.Errorf("Addr.IsUnspecified() != net.IP.IsUnspecified(): ip=%q stdip=%q", ip, stdip) } } } // Check that .Next().Prev() and .Prev().Next() preserve the IP.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 20 23:46:23 UTC 2021 - 10.5K bytes - Viewed (0) -
src/net/netip/inlining_test.go
}) wantInlinable := []string{ "(*uint128).halves", "Addr.BitLen", "Addr.hasZone", "Addr.Is4", "Addr.Is4In6", "Addr.Is6", "Addr.IsInterfaceLocalMulticast", "Addr.IsValid", "Addr.IsUnspecified", "Addr.Less", "Addr.Unmap", "Addr.Zone", "Addr.v4", "Addr.v6", "Addr.v6u16", "Addr.withoutZone", "AddrPortFrom", "AddrPort.Addr", "AddrPort.Port", "AddrPort.IsValid",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/library_compatibility_test.go
// Kubernetes <1.29>: "add", "asApproximateFloat", "asInteger", "compareTo", "isGreaterThan", "isInteger", "isLessThan", "isQuantity", "quantity", "sign", "sub", // Kubernetes <1.30>: "ip", "family", "isUnspecified", "isLoopback", "isLinkLocalMulticast", "isLinkLocalUnicast", "isGlobalUnicast", "ip.isCanonical", "isIP", "cidr", "containsIP", "containsCIDR", "masked", "prefixLength", "isCIDR", "string", // Kubernetes <1.??>: )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 12:03:04 UTC 2023 - 2.6K bytes - Viewed (0) -
src/net/ip_test.go
} } } var ipAddrScopeTests = []struct { scope func(IP) bool in IP ok bool }{ {IP.IsUnspecified, IPv4zero, true}, {IP.IsUnspecified, IPv4(127, 0, 0, 1), false}, {IP.IsUnspecified, IPv6unspecified, true}, {IP.IsUnspecified, IPv6interfacelocalallnodes, false}, {IP.IsUnspecified, nil, false}, {IP.IsLoopback, IPv4(127, 0, 0, 1), true}, {IP.IsLoopback, IPv4(127, 255, 255, 254), true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 01:17:29 UTC 2024 - 25.7K bytes - Viewed (0) -
src/net/ip.go
IPv6linklocalallrouters = IP{0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x02} ) // IsUnspecified reports whether ip is an unspecified address, either // the IPv4 address "0.0.0.0" or the IPv6 address "::". func (ip IP) IsUnspecified() bool { return ip.Equal(IPv4zero) || ip.Equal(IPv6unspecified) } // IsLoopback reports whether ip is a loopback address.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 03:13:26 UTC 2024 - 13.9K bytes - Viewed (0) -
pilot/pkg/util/network/ip.go
unwrapAddr := ipAddr.Unmap() if !unwrapAddr.IsValid() || unwrapAddr.IsLoopback() || unwrapAddr.IsLinkLocalUnicast() || unwrapAddr.IsLinkLocalMulticast() { continue } if unwrapAddr.IsUnspecified() { ok = false continue } ipAddresses = append(ipAddresses, unwrapAddr.String()) } } return ipAddresses, ok }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 21 21:27:21 UTC 2023 - 6.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/serving.go
CertDirectory: "apiserver.local.config/certificates", }, } } func (s *SecureServingOptions) DefaultExternalAddress() (net.IP, error) { if s.ExternalAddress != nil && !s.ExternalAddress.IsUnspecified() { return s.ExternalAddress, nil } return utilnet.ResolveBindAddress(s.BindAddress) } func (s *SecureServingOptions) Validate() []error { if s == nil { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 13:08:18 UTC 2024 - 15.9K bytes - Viewed (0)