- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for colType (0.24 sec)
-
src/database/sql/fakedb_test.go
} mrows = append(mrows, mrow) } var colType []string for _, column := range s.colName { colType = append(colType, t.coltype[t.columnIndex(column)]) } t.mu.Unlock() setMRows = append(setMRows, mrows) setColumns = append(setColumns, s.colName) setColType = append(setColType, colType) if s.next == nil { break } s = s.next }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 01 12:38:07 UTC 2024 - 30.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go
// the TypeProvider and the cost estimator. // List and map types are created on-demand with their parameters converted recursively. func convertCelTypeToDeclType(celType *cel.Type) *apiservercel.DeclType { if celType == nil { return apiservercel.DynType } switch celType { case cel.AnyType: return apiservercel.AnyType case cel.BoolType: return apiservercel.BoolType case cel.BytesType:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 13 21:06:39 UTC 2024 - 7.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/lists.go
var comparableTypes = []namedCELType{ {typeName: "int", celType: cel.IntType}, {typeName: "uint", celType: cel.UintType}, {typeName: "double", celType: cel.DoubleType}, {typeName: "bool", celType: cel.BoolType}, {typeName: "duration", celType: cel.DurationType}, {typeName: "timestamp", celType: cel.TimestampType}, {typeName: "string", celType: cel.StringType}, {typeName: "bytes", celType: cel.BytesType}, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 9.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/types.go
} // ExprType returns the CEL expression type of this declaration. func (t *DeclType) ExprType() (*exprpb.Type, error) { return cel.TypeToExprType(t.celType) } // CelType returns the CEL type of this declaration. func (t *DeclType) CelType() *cel.Type { return t.celType } // FindField returns the DeclField with the given name if present. func (t *DeclType) FindField(name string) (*DeclField, bool) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 15:52:31 UTC 2023 - 18K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/common/interface.go
Resolve(name string) (TypeRef, bool) } // TypeRef refers an object type that can be looked up for its fields. type TypeRef interface { ref.Type // CELType wraps the TypeRef to be a type that is understood by CEL. CELType() *types.Type // Field finds the field by the field name, or false if the field is not known. // This function directly return a FieldType that is known to CEL to be more customizable.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 24 00:01:35 UTC 2024 - 1.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/unstructured/typeref.go
} // Val returns an instance given the fields. func (r *TypeRef) Val(fields map[string]ref.Val) ref.Val { return common.NewObjectVal(r, fields) } // CELType returns the type. The returned type is of TypeType type. func (r *TypeRef) CELType() *types.Type { return r.celTypeType } // Field looks up the field by name. // This is the unstructured version that allows any name as the field name.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 24 00:01:35 UTC 2024 - 1.9K bytes - Viewed (0) -
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.go
envs[claimsVarName] = buildEnvSet([]cel.EnvOption{cel.Variable(claimsVarName, claimsType.CelType())}, []*apiservercel.DeclType{claimsType}) envs[userVarName] = buildEnvSet([]cel.EnvOption{cel.Variable(userVarName, userType.CelType())}, []*apiservercel.DeclType{userType}) return envs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 17:59:05 UTC 2024 - 5.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/common/val.go
func (v *ObjectVal) ConvertToType(typeValue ref.Type) ref.Val { switch typeValue { case v.typeRef: return v case types.TypeType: return v.typeRef.CELType() } return types.NewErr("unsupported conversion into %v", typeValue) } // Equal returns true if the `other` value has the same type and content as the implementing struct.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 27 21:55:08 UTC 2024 - 4.2K 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)