Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for validate0 (0.49 sec)

  1. pkg/config/validation/validation.go

    	return validateFuncs[name]
    }
    
    func RegisterValidateFunc(name string, f ValidateFunc) ValidateFunc {
    	// Wrap the original validate function with an extra validate function for object metadata
    	validate := validateMetadata(f)
    	validateFuncs[name] = validate
    	return validate
    }
    
    func validateMetadata(f ValidateFunc) ValidateFunc {
    	return func(config config.Config) (Warning, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    						},
    					},
    				},
    			}
    			validator := NewValidator(s, true, celconfig.PerCallLimit)
    			if validator == nil {
    				b.Fatal("expected non nil validator")
    			}
    
    			ctx := context.TODO()
    			root := field.NewPath("root")
    
    			b.ReportAllocs()
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				errs, _ := validator.Validate(ctx, root, s, obj, obj, celconfig.RuntimeCELCostBudget)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    	}
    
    	// ExecObjectLayerAPIAnonTest - Calls the HTTP API handler using the anonymous request, validates the ErrAccessDeniedResponse,
    	// sets the bucket policy using the policy statement generated from `getWriteOnlyObjectStatement` so that the
    	// unsigned request goes through and its validated again.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  4. cmd/server_test.go

    }
    
    // TestHeadOnObjectLastModified - Asserts response for HEAD on an object.
    // HEAD requests on an object validates the existence of the object.
    // The responses for fetching the object when If-Modified-Since
    // and If-Unmodified-Since headers set are validated.
    // If-Modified-Since - Return the object only if it has been modified since the specified time, else return a 304 (not modified).
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set_control_test.go

    	type testcase struct {
    		name       string
    		invariants func(set *apps.StatefulSet, om *fakeObjectManager) error
    		initial    func() *apps.StatefulSet
    		update     func(set *apps.StatefulSet) *apps.StatefulSet
    		validate   func(set *apps.StatefulSet, pods []*v1.Pod) error
    	}
    
    	testFn := func(test *testcase, t *testing.T) {
    		set := test.initial()
    		client := fake.NewSimpleClientset(set)
    		om, _, ssc := setupController(client)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    LogicalResult ParseExampleV2Op::verify() {
      ParseExampleV2Op op = *this;
      // NOTE(mrry): This validates properties of an op that would previously be
      // validated by the TensorFlow OpDef type checker. In addition to these
      // checks, the shape inference function for ParseExampleV2 validates the
      // consistency of the argument and result types.
    
      // Validate dense variadic input and output lengths.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  7. cmd/object-handlers.go

    	if err != nil {
    		apiErr := errorCodes.ToAPIErr(ErrMalformedXML)
    		apiErr.Description = err.Error()
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    	// validate the request
    	if err := rreq.validate(ctx, objectAPI); err != nil {
    		apiErr := errorCodes.ToAPIErr(ErrMalformedXML)
    		apiErr.Description = err.Error()
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 124.2K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    }
    
    type healInitParams struct {
    	bucket, objPrefix     string
    	hs                    madmin.HealOpts
    	clientToken           string
    	forceStart, forceStop bool
    }
    
    // extractHealInitParams - Validates params for heal init API.
    func extractHealInitParams(vars map[string]string, qParams url.Values, r io.Reader) (hip healInitParams, err APIErrorCode) {
    	hip.bucket = vars[mgmtBucket]
    	hip.objPrefix = vars[mgmtPrefix]
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  9. cluster/gce/util.sh

        clear-kubeconfig
      else
      # If some master replicas remain: cluster has been changed, we need to re-validate it.
        echo "... calling validate-cluster" >&2
        # Override errexit
        (validate-cluster) && validate_result="$?" || validate_result="$?"
    
        # We have two different failure modes from validate cluster:
        # - 1: fatal error - cluster won't be working correctly
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 21:47:17 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  10. pkg/controller/job/job_controller_test.go

    					t.Error("Syncing jobs expected to return error when reached the podControl limit")
    				}
    			} else if err != nil {
    				t.Errorf("Unexpected error when syncing jobs: %v", err)
    			}
    			// validate created/deleted pods
    			if int32(len(fakePodControl.Templates)) != tc.expectedCreations {
    				t.Errorf("Unexpected number of creates.  Expected %d, saw %d\n", tc.expectedCreations, len(fakePodControl.Templates))
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
Back to top