Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for validateNode (0.36 sec)

  1. subprojects/core/src/main/java/org/gradle/execution/plan/DefaultNodeValidator.java

            WorkValidationContext validationContext = validateNode(node);
            List<? extends Problem> problems = validationContext.getProblems();
            logWarnings(problems);
            reportErrors(problems, node.getTask(), validationContext);
            return !problems.isEmpty();
        }
    
        private WorkValidationContext validateNode(LocalTaskNode node) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 04 07:42:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. pkg/registry/core/node/strategy.go

    		return true
    	}
    	return false
    }
    
    // Validate validates a new node.
    func (nodeStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	node := obj.(*api.Node)
    	return validation.ValidateNode(node)
    }
    
    // WarningsOnCreate returns warnings for the creation of the given object.
    func (nodeStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string {
    	return fieldIsDeprecatedWarnings(obj)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:06:39 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. tensorflow/cc/saved_model/loader.cc

      for (const auto& node : graph_def.node()) {
        TF_RETURN_IF_ERROR(ValidateNode(node));
      }
    
      if (graph_def.has_library()) {
        const FunctionDefLibrary& library = graph_def.library();
        for (const auto& function : library.function()) {
          for (const auto& node : function.node_def()) {
            TF_RETURN_IF_ERROR(ValidateNode(node));
          }
    
          // Also check that there is no recursivity in the library
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 04:36:00 UTC 2024
    - 23K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r18/GradleBuildModelCrossVersionSpec.groovy

            when:
            GradleBuild model = withConnection { connection -> connection.getModel(GradleBuild) }
    
            then:
            validateModel(model)
            model.projects*.projectDirectory == [projectDir, file('a'), file('b'), file('b/c')]
        }
    
        def validateModel(GradleBuild model) {
            assert model.rootProject.name == 'test'
            assert model.rootProject.path == ':'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. pkg/registry/rbac/role/strategy.go

    }
    
    // Validate validates a new Role. Validation must check for a correct signature.
    func (strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	role := obj.(*rbac.Role)
    	return validation.ValidateRole(role)
    }
    
    // WarningsOnCreate returns warnings for the creation of the given object.
    func (strategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string { return nil }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  6. pkg/apis/rbac/validation/validation.go

    // * https://github.com/openshift/origin/blob/388478c40e751c4295dcb9a44dd69e5ac65d0e3b/pkg/api/helpers.go
    func ValidateRBACName(name string, prefix bool) []string {
    	return path.IsValidPathSegmentName(name)
    }
    
    func ValidateRole(role *rbac.Role) field.ErrorList {
    	allErrs := field.ErrorList{}
    	allErrs = append(allErrs, validation.ValidateObjectMeta(&role.ObjectMeta, true, ValidateRBACName, field.NewPath("metadata"))...)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:48:21 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  7. pkg/apis/core/validation/validation.go

    	if annotations[core.PreferAvoidPodsAnnotationKey] != "" {
    		allErrs = append(allErrs, ValidateAvoidPodsInNodeAnnotations(annotations, fldPath)...)
    	}
    	return allErrs
    }
    
    // ValidateNode tests if required fields in the node are set.
    func ValidateNode(node *core.Node) field.ErrorList {
    	fldPath := field.NewPath("metadata")
    	allErrs := ValidateObjectMeta(&node.ObjectMeta, false, ValidateNodeName, fldPath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  8. pkg/test/echo/server/endpoint/http.go

    	}
    	return nil
    }
    
    func setResponseFromCodes(request *http.Request, response http.ResponseWriter) (int, error) {
    	responseCodes := request.FormValue("codes")
    
    	codes, err := validateCodes(responseCodes)
    	if err != nil {
    		return 0, err
    	}
    
    	// Choose a random "slice" from a pie
    	totalSlices := 0
    	for _, flavor := range codes {
    		totalSlices += flavor.slices
    	}
    	// nolint: gosec
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 16:20:31 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  9. pkg/apis/core/validation/validation_test.go

    			},
    		},
    		Spec: core.NodeSpec{
    			PodCIDRs: []string{"192.168.0.0/16"},
    		},
    	},
    	}
    	for _, successCase := range successCases {
    		if errs := ValidateNode(&successCase); len(errs) != 0 {
    			t.Errorf("expected success: %v", errs)
    		}
    	}
    
    	errorCases := map[string]core.Node{
    		"zero-length Name": {
    			ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  10. pkg/apis/rbac/validation/validation_test.go

    			}
    		}
    	}
    }
    
    type ValidateRoleTest struct {
    	role    rbac.Role
    	wantErr bool
    	errType field.ErrorType
    	field   string
    }
    
    func (v ValidateRoleTest) test(t *testing.T) {
    	errs := ValidateRole(&v.role)
    	if len(errs) == 0 {
    		if v.wantErr {
    			t.Fatal("expected validation error")
    		}
    		return
    	}
    	if !v.wantErr {
    		t.Errorf("didn't expect error, got %v", errs)
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 14.1K bytes
    - Viewed (0)
Back to top