Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 71 for toolType (0.09 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/types.go

    	// types supported.
    	AnyType = NewSimpleTypeWithMinSize("any", cel.AnyType, nil, 1)
    
    	// BoolType is equivalent to the CEL 'bool' type.
    	BoolType = NewSimpleTypeWithMinSize("bool", cel.BoolType, types.False, MinBoolSize)
    
    	// BytesType is equivalent to the CEL 'bytes' type.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 18K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authorization/cel/matcher.go

    			evalErrors = append(evalErrors, fmt.Errorf("cel evaluation error: expression '%v' resulted in error: %w", compilationResult.ExpressionAccessor.GetExpression(), err))
    			continue
    		}
    		if evalResult.Type() != celgo.BoolType {
    			evalErrors = append(evalErrors, fmt.Errorf("cel evaluation error: expression '%v' eval result type should be bool but got %W", compilationResult.ExpressionAccessor.GetExpression(), evalResult.Type()))
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/interface.go

    	Reason     *metav1.StatusReason
    }
    
    func (v *ValidationCondition) GetExpression() string {
    	return v.Expression
    }
    
    func (v *ValidationCondition) ReturnTypes() []*celgo.Type {
    	return []*celgo.Type{celgo.BoolType}
    }
    
    // AuditAnnotationCondition contains the inputs needed to compile, evaluate and publish a cel audit annotation
    type AuditAnnotationCondition struct {
    	Key             string
    	ValueExpression string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 17:47:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. 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)
  5. staging/src/k8s.io/apiserver/pkg/cel/openapi/compiling_test.go

    				bar: map[string]any{"bar": "value", "common": 2, "confusion": 114514},
    			})
    			if err != nil {
    				t.Fatal(err)
    			}
    			if ret.Type() != types.BoolType {
    				t.Errorf("bad result type: %v", ret.Type())
    			}
    			if res := ret.Value().(bool); tc.expectEvalResult != res {
    				t.Errorf("expectEvalResult expression evaluates to %v, got %v", tc.expectEvalResult, res)
    			}
    		})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher.go

    type MatchCondition v1.MatchCondition
    
    func (v *MatchCondition) GetExpression() string {
    	return v.Expression
    }
    
    func (v *MatchCondition) ReturnTypes() []*cel.Type {
    	return []*cel.Type{cel.BoolType}
    }
    
    var _ Matcher = &matcher{}
    
    // matcher evaluates compiled cel expressions and determines if they match the given request or not
    type matcher struct {
    	filter      celplugin.Filter
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 24 14:46:11 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go

    	}
    	if ft.In(0) != ft.In(1) {
    		return fmt.Errorf("expected arg 1 and 2 to have same type, but got %v", ft)
    	}
    	var forReturnType bool
    	boolType := reflect.TypeOf(forReturnType)
    	if ft.Out(0) != boolType {
    		return fmt.Errorf("expected bool return, got: %v", ft)
    	}
    	e[ft.In(0)] = fv
    	return nil
    }
    
    // Below here is forked from go's reflect/deepequal.go
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 20 17:18:42 UTC 2022
    - 10.8K bytes
    - Viewed (0)
  8. src/debug/dwarf/type.go

    type FloatType struct {
    	BasicType
    }
    
    // A ComplexType represents a complex floating point type.
    type ComplexType struct {
    	BasicType
    }
    
    // A BoolType represents a boolean type.
    type BoolType struct {
    	BasicType
    }
    
    // An AddrType represents a machine address type.
    type AddrType struct {
    	BasicType
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/library/urls.go

    			cel.MapType(cel.StringType, cel.ListType(cel.StringType)),
    			cel.UnaryBinding(getQuery))},
    	"isURL": {
    		cel.Overload("is_url_string", []*cel.Type{cel.StringType}, cel.BoolType,
    			cel.UnaryBinding(isURL))},
    }
    
    func (*urls) CompileOptions() []cel.EnvOption {
    	options := []cel.EnvOption{}
    	for name, overloads := range urlLibraryDecls {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/library/authz.go

    	"errored": {
    		cel.MemberOverload("decision_errored", []*cel.Type{DecisionType}, cel.BoolType,
    			cel.UnaryBinding(decisionErrored))},
    	"error": {
    		cel.MemberOverload("decision_error", []*cel.Type{DecisionType}, cel.StringType,
    			cel.UnaryBinding(decisionError))},
    	"allowed": {
    		cel.MemberOverload("decision_allowed", []*cel.Type{DecisionType}, cel.BoolType,
    			cel.UnaryBinding(decisionAllowed))},
    	"reason": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 21.1K bytes
    - Viewed (0)
Back to top