- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for CelType (0.54 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go
EnvOptions: []cel.EnvOption{ cel.Variable(ScopedVarName, scopedType.CelType()), }, DeclTypes: []*apiservercel.DeclType{ scopedType, }, }, environment.VersionedOptions{ IntroducedVersion: version.MajorMinor(1, 24), EnvOptions: []cel.EnvOption{ cel.Variable(OldScopedVarName, scopedType.CelType()), }, }, ) if err != nil { return nil, nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 13.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/cel/compile_test.go
fieldName := jsonTagParts[0] declField, ok := userDeclType.Fields[fieldName] if !ok { t.Errorf("expected field %q to be present", field.Name) } if nativeTypeToCELType(t, field.Type).CelType().Equal(declField.Type.CelType()).Value() != true { t.Errorf("expected field %q to have type %v, got %v", field.Name, field.Type, declField.Type) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 7.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/openapi/compiling_test.go
environment.VersionedOptions{ IntroducedVersion: version.MajorMinor(1, 26), EnvOptions: []cel.EnvOption{ cel.Variable("foo", fooType.CelType()), cel.Variable("bar", barType.CelType()), }, DeclTypes: []*apiservercel.DeclType{ fooType, barType, }, }, ) if err != nil { return nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/cel/compile_test.go
if !ok { t.Fatalf("expected field %q to be present", nativeField.Name) } declFieldType := nativeTypeToCELType(t, nativeField.Type, field, fields) if declFieldType != nil && declFieldType.CelType().Equal(declField.Type.CelType()).Value() != true { return fmt.Errorf("expected native field %q to have type %v, got %v", nativeField.Name, nativeField.Type, declField.Type) } } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 5.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/environment/environment_test.go
{ IntroducedVersion: version.MajorMinor(1, 28), DeclTypes: []*apiservercel.DeclType{widgetsType}, EnvOptions: []cel.EnvOption{ cel.Variable("widget", widgetsType.CelType()), }, }, }, }, { name: "declared type enabled", typeVersionCombinations: []envTypeAndVersion{ {version.MajorMinor(1, 28), NewExpressions},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 10K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/compile.go
} envOpts = append(envOpts, cel.Variable(ObjectVarName, cel.DynType), cel.Variable(OldObjectVarName, cel.DynType), cel.Variable(NamespaceVarName, namespaceType.CelType()), cel.Variable(RequestVarName, requestType.CelType())) extended, err := baseEnv.Extend( environment.VersionedOptions{ // Feature epoch was actually 1.26, but we artificially set it to 1.0 because these
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 10.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/typeprovider.go
// TypeProvider instead. func (p *TypeProvider) FindStructType(structType string) (*types.Type, bool) { t, ok := p.typeResolver.Resolve(structType) if ok { return t.CELType(), true } return p.underlyingTypeProvider.FindStructType(structType) } // FindStructFieldNames returns the field names associated with the type, if the type // is found.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 21:02:36 UTC 2024 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy_test.go
environment.VersionedOptions{ IntroducedVersion: version.MajorMinor(1, 28), EnvOptions: []cel.EnvOption{ cel.Variable("variables", variablesType.CelType()), }, DeclTypes: []*apiservercel.DeclType{ variablesType, }, }) if err != nil { return nil, nil, err } // TODO: change to NewExpressions after 1.28
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 4.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/typechecking.go
func createVariableOpts(declType *apiservercel.DeclType, variables ...string) []cel.EnvOption { opts := make([]cel.EnvOption, 0, len(variables)) t := cel.DynType if declType != nil { t = declType.CelType() } for _, v := range variables { opts = append(opts, cel.Variable(v, t)) } return opts } type typeCheckingCompiler struct { compositionEnv *plugincel.CompositionEnv
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 15.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
case t.IsString(): ptr := s.newValue1(ssa.OpStringPtr, s.f.Config.Types.BytePtr, right) s.store(s.f.Config.Types.BytePtr, left, ptr) case t.IsSlice(): elType := types.NewPtr(t.Elem()) ptr := s.newValue1(ssa.OpSlicePtr, elType, right) s.store(elType, left, ptr) case t.IsInterface(): // itab field is treated as a scalar. idata := s.newValue1(ssa.OpIData, s.f.Config.Types.BytePtr, right)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0)