- Sort Score
- Result 10 results
- Languages All
Results 11 - 15 of 15 for NewErr (0.1 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/library/urls.go
} // Use ParseRequestURI to check the URL before conversion. // ParseRequestURI requires absolute URLs and is used by the OpenAPIv3 'uri' format. _, err := url.ParseRequestURI(s) if err != nil { return types.NewErr("URL parse error during conversion from string: %v", err) } // We must parse again with Parse since ParseRequestURI incorrectly parses URLs that contain a fragment
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 7.9K 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. func (v *ObjectVal) Equal(other ref.Val) ref.Val {
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/cel/lazy/lazy_test.go
variablesMap.Append("dict", func(_ *MapValue) ref.Val { evalCounter++ v, err := compileAndRun(env, activation, `{"a": "a"}`) if err != nil { return types.NewErr(err.Error()) } return v }) // iterate the map with .all exp = `variables.all(n, n != "")` v, err = compileAndRun(env, activation, exp) if err != nil { t.Fatalf("%q: %v", exp, err) }
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/cel/library/cidr.go
} func stringToCIDR(arg ref.Val) ref.Val { s, ok := arg.Value().(string) if !ok { return types.MaybeNoSuchOverloadErr(arg) } net, err := parseCIDR(s) if err != nil { return types.NewErr("network address parse error during conversion from string: %v", err) } return apiservercel.CIDR{ Prefix: net, } } func cidrToString(arg ref.Val) ref.Val { cidr, ok := arg.(apiservercel.CIDR)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 12:03:04 UTC 2023 - 8.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/lists.go
if result == nil { result = nextCmp } else { cmp := result.Compare(next) if cmp == opPreferCmpResult { result = nextCmp } } } if result == nil { return types.NewErr("%s called on empty list", opName) } return result.(ref.Val) } } func indexOf(list ref.Val, item ref.Val) ref.Val { lister, ok := list.(traits.Lister) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 9.2K bytes - Viewed (0)