Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for declTypes (0.25 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/typechecking.go

    	var varOpts []cel.EnvOption
    	var declTypes []*apiservercel.DeclType
    
    	// namespace, hand-crafted type
    	declTypes = append(declTypes, namespaceType)
    	varOpts = append(varOpts, createVariableOpts(namespaceType, plugincel.NamespaceVarName)...)
    
    	// request, hand-crafted type
    	declTypes = append(declTypes, requestType)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/environment/environment.go

    	var progOpts []cel.ProgramOption
    	var declTypes []*apiservercel.DeclType
    
    	for _, opt := range opts {
    		if compatVer.AtLeast(opt.IntroducedVersion) && (opt.RemovedVersion == nil || compatVer.LessThan(opt.RemovedVersion)) {
    			envOpts = append(envOpts, opt.EnvOptions...)
    			progOpts = append(progOpts, opt.ProgramOptions...)
    			declTypes = append(declTypes, opt.DeclTypes...)
    		}
    	}
    
    	if len(declTypes) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/environment/environment_test.go

    			opts: []VersionedOptions{
    				{
    					IntroducedVersion: version.MajorMinor(1, 28),
    					RemovedVersion:    version.MajorMinor(1, 29),
    					DeclTypes:         []*apiservercel.DeclType{widgetsType},
    					EnvOptions: []cel.EnvOption{
    						cel.Variable("widget", cel.ObjectType("Widget")),
    					},
    				},
    			},
    		},
    		{
    			name: "declared type disabled after removed",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/types.go

    		ev[i] = types.DefaultTypeAdapter.NativeToValue(e)
    	}
    	return ev
    }
    
    func allTypesForDecl(declTypes []*DeclType) map[string]*DeclType {
    	if declTypes == nil {
    		return nil
    	}
    	allTypes := map[string]*DeclType{}
    	for _, declType := range declTypes {
    		for k, t := range FieldTypeMap(declType.TypeName(), declType) {
    			allTypes[k] = t
    		}
    	}
    
    	return allTypes
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 18K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go

    	oldSelfEnvSet, optionalOldSelfEnvSet, err := prepareEnvSet(baseEnvSet, declType)
    	if err != nil {
    		return nil, err
    	}
    	estimator := newCostEstimator(declType)
    	// compResults is the return value which saves a list of compilation results in the same order as x-kubernetes-validations rules.
    	compResults := make([]CompilationResult, len(celRules))
    	maxCardinality := maxCardinality(declType.MinSerializedSize)
    	for i, rule := range celRules {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/compile.go

    	))
    }
    
    // BuildNamespaceType generates a DeclType for Namespace.
    // Certain nested fields in Namespace (e.g. managedFields, ownerReferences etc.) are omitted in the generated DeclType
    // by design.
    func BuildNamespaceType() *apiservercel.DeclType {
    	field := func(name string, declType *apiservercel.DeclType, required bool) *apiservercel.DeclField {
    		return apiservercel.NewDeclField(name, declType, required, nil, nil)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_test.cc

    using ::testing::HasSubstr;
    
    TEST(PARALLEL_DEVICE, TestBasicCPU) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      std::unique_ptr<TF_Buffer, decltype(&TF_DeleteBuffer)> config(
          TF_CreateConfig(
              /*enable_xla_compilation=*/false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 08 23:47:35 UTC 2021
    - 29.3K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

    using ::testing::HasSubstr;
    
    TEST(PARALLEL_DEVICE_LIB, TestOpWithError) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      std::unique_ptr<TF_Buffer, decltype(&TF_DeleteBuffer)> config(
          TF_CreateConfig(
              /*xla*/ false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 08 23:47:35 UTC 2021
    - 15.3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/custom_device_test.cc

    }
    
    TEST(CUSTOM_DEVICE, MakeVariable) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      std::unique_ptr<TFE_Context, decltype(&TFE_DeleteContext)> context(
          TFE_NewContext(opts.get(), status.get()), TFE_DeleteContext);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 27 23:39:24 UTC 2020
    - 18.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/cel_validation.go

    	Schema *structuralschema.Structural
    	// DeclType is a CEL declaration representation of Schema of this CELSchemaContext node. It must be non-nil.
    	DeclType *cel.DeclType
    }
    
    // converter converts from JSON schema to a structural schema and a CEL declType, or returns an error if the conversion
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 13.8K bytes
    - Viewed (0)
Back to top