Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for isIP (0.04 sec)

  1. pkg/config/analysis/analyzers/externalcontrolplane/externalcontrolplane.go

    			if err != nil {
    				c.Report(gvk.ValidatingWebhookConfiguration, msg.NewInvalidExternalControlPlaneConfig(r, *clientConf.URL, hName, err.Error()))
    				return
    			}
    			if result.isIP() {
    				c.Report(gvk.ValidatingWebhookConfiguration, msg.NewExternalControlPlaneAddressIsNotAHostname(r, *clientConf.URL, hName))
    			}
    		} else if clientConf.Service == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 16:48:42 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. src/net/http/cookiejar/jar.go

    		// returns "com" as the jar key is generated from host.
    	}
    	prevDot := strings.LastIndex(host[:i-1], ".")
    	return host[prevDot+1:]
    }
    
    // isIP reports whether host is an IP address.
    func isIP(host string) bool {
    	if strings.ContainsAny(host, ":%") {
    		// Probable IPv6 address.
    		// Hostnames can't contain : or %, so this is definitely not a valid host.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. pkg/apis/networking/validation/validation.go

    			for _, msg := range validation.IsDNS1123Subdomain(ingress.Hostname) {
    				allErrs = append(allErrs, field.Invalid(idxPath.Child("hostname"), ingress.Hostname, msg))
    			}
    			if isIP := (netutils.ParseIPSloppy(ingress.Hostname) != nil); isIP {
    				allErrs = append(allErrs, field.Invalid(idxPath.Child("hostname"), ingress.Hostname, "must be a DNS name, not an IP address"))
    			}
    		}
    	}
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 07 14:48:01 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/cost.go

    			// in length.
    			regexCost := uint64(math.Ceil(float64(actualSize(args[1])) * common.RegexStringLengthCostFactor))
    			cost := strCost * regexCost
    			return &cost
    		}
    	case "cidr", "isIP", "isCIDR":
    		// IP and CIDR parsing is a string traversal.
    		if len(args) >= 1 {
    			cost := uint64(math.Ceil(float64(actualSize(args[0])) * common.StringTraversalCostFactor))
    			return &cost
    		}
    	case "ip":
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. src/net/http/cookiejar/jar_test.go

    	"1.1.1.300":            false,
    	"www.foo.bar.net":      false,
    	"123.foo.bar.net":      false,
    }
    
    func TestIsIP(t *testing.T) {
    	for host, want := range isIPTests {
    		if got := isIP(host); got != want {
    			t.Errorf("%q: got %t, want %t", host, got, want)
    		}
    	}
    }
    
    var defaultPathTests = map[string]string{
    	"/":           "/",
    	"/abc":        "/",
    	"/abc/":       "/abc",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 34K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			},
    			expectedCost: 7,
    		},
    		{name: "IP and CIDR",
    			obj:    objs("20", "200M"),
    			schema: schemas(stringType, stringType),
    			valid: []string{
    				`isIP("192.168.0.1")`,
    				`ip.isCanonical("127.0.0.1")`,
    				`ip("192.168.0.1").family() > 0`,
    				`ip("0.0.0.0").isUnspecified()`,
    				`ip("127.0.0.1").isLoopback()`,
    				`ip("224.0.0.1").isLinkLocalMulticast()`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  7. pkg/apis/core/validation/validation.go

    				for _, msg := range validation.IsDNS1123Subdomain(ingress.Hostname) {
    					allErrs = append(allErrs, field.Invalid(idxPath.Child("hostname"), ingress.Hostname, msg))
    				}
    				if isIP := (netutils.ParseIPSloppy(ingress.Hostname) != nil); isIP {
    					allErrs = append(allErrs, field.Invalid(idxPath.Child("hostname"), ingress.Hostname, "must be a DNS name, not an IP address"))
    				}
    			}
    		}
    	}
    	return allErrs
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
Back to top