Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,344 for valid (0.04 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go

    func IsValidIPv4Address(fldPath *field.Path, value string) field.ErrorList {
    	var allErrors field.ErrorList
    	ip := netutils.ParseIPSloppy(value)
    	if ip == nil || ip.To4() == nil {
    		allErrors = append(allErrors, field.Invalid(fldPath, value, "must be a valid IPv4 address"))
    	}
    	return allErrors
    }
    
    // IsValidIPv6Address tests that the argument is a valid IPv6 address.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 16:08:43 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. pkg/apis/rbac/validation/validation_test.go

    			RoleRef:    rbac.RoleRef{APIGroup: rbac.GroupName, Kind: "ClusterRole", Name: "valid"},
    			Subjects: []rbac.Subject{
    				{Name: "validsaname", APIGroup: "", Namespace: "foo", Kind: rbac.ServiceAccountKind},
    				{Name: "valid@username", APIGroup: rbac.GroupName, Kind: rbac.UserKind},
    				{Name: "valid@groupname", APIGroup: rbac.GroupName, Kind: rbac.GroupKind},
    			},
    		},
    	)
    	if len(errs) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  3. pkg/proxy/apis/config/validation/validation_test.go

    			addresses: []string{},
    		},
    		"valid 1": {
    			addresses: []string{"127.0.0.0/8"},
    		},
    		"valid 2": {
    			addresses: []string{"0.0.0.0/0"},
    		},
    		"valid 3": {
    			addresses: []string{"::/0"},
    		},
    		"valid 4": {
    			addresses: []string{"127.0.0.1/32", "1.2.3.0/24"},
    		},
    		"valid 5": {
    			addresses: []string{"127.0.0.1/32"},
    		},
    		"valid 6": {
    			addresses: []string{"::1/128"},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  4. cmd/signature-v4-parser_test.go

    				strings.Join([]string{
    					// generating a valid credential.
    					generateCredentialStr(
    						"access key",
    						sampleTimeStr,
    						"us-west-1",
    						"s3",
    						"aws4_request"),
    					// valid SignedHeader.
    					"SignedHeaders=host;x-amz-content-sha256;x-amz-date",
    					// valid Signature field.
    					// a valid signature is of form "Signature="
    					"Signature=abcd",
    				}, ","),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/constants/constants_test.go

    		{
    			svcSubnetList: "192.168.10.0/24",
    			expected:      "192.168.10.0/24",
    			expectedError: false,
    			name:          "valid: valid IPv4 range from single-stack",
    		},
    		{
    			svcSubnetList: "fd03::/112",
    			expected:      "fd03::/112",
    			expectedError: false,
    			name:          "valid: valid IPv6 range from single-stack",
    		},
    		{
    			svcSubnetList: "192.168.10.0/24,fd03::/112",
    			expected:      "192.168.10.0/24",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 03:26:36 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. src/go/types/index.go

    	check.nonGeneric(nil, x)
    	if x.mode == invalid {
    		return false
    	}
    
    	// ordinary index expression
    	valid := false
    	length := int64(-1) // valid if >= 0
    	switch typ := under(x.typ).(type) {
    	case *Basic:
    		if isString(typ) {
    			valid = true
    			if x.mode == constant_ {
    				length = int64(len(constant.StringVal(x.val)))
    			}
    			// an indexed string always yields a byte value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  7. tests/integration/security/jwt_test.go

    						opts.HTTP.Path = "/valid-aud"
    						opts.HTTP.Headers = headers.New().WithAuthz(jwt.TokenIssuer1).Build()
    						opts.Check = check.Status(http.StatusForbidden)
    					},
    				},
    				{
    					name: "valid-aud",
    					customizeCall: func(t framework.TestContext, from echo.Instance, opts *echo.CallOptions) {
    						opts.HTTP.Path = "/valid-aud"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/runtime/runtime_test.go

    func TestRemoveContainers(t *testing.T) {
    	for _, tc := range []struct {
    		name        string
    		containers  []string
    		prepare     func(*fakeImpl)
    		shouldError bool
    	}{
    		{
    			name: "valid",
    		},
    		{
    			name:        "valid: two containers",
    			containers:  []string{"1", "2"},
    			shouldError: false,
    		},
    		{
    			name:       "invalid: remove pod sandbox fails",
    			containers: []string{"1"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy_test.go

    			enableRatcheting: false,
    			crd: &apiextensions.CustomResourceDefinition{
    				ObjectMeta: metav1.ObjectMeta{Name: "foos.sigs.k8s.io", Annotations: map[string]string{v1beta1.KubeAPIApprovedAnnotation: "valid"}, ResourceVersion: "1"},
    				Spec: apiextensions.CustomResourceDefinitionSpec{
    					Validation: &apiextensions.CustomResourceValidation{
    						OpenAPIV3Schema: &apiextensions.JSONSchemaProps{
    							Type: "object",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/index.go

    	check.nonGeneric(nil, x)
    	if x.mode == invalid {
    		return false
    	}
    
    	// ordinary index expression
    	valid := false
    	length := int64(-1) // valid if >= 0
    	switch typ := under(x.typ).(type) {
    	case *Basic:
    		if isString(typ) {
    			valid = true
    			if x.mode == constant_ {
    				length = int64(len(constant.StringVal(x.val)))
    			}
    			// an indexed string always yields a byte value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 11.5K bytes
    - Viewed (0)
Back to top