- Sort Score
- Result 10 results
- Languages All
Results 11 - 17 of 17 for NewErr (0.13 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/cidr.go
switch typeVal { case CIDRType: return d case types.TypeType: return CIDRType case types.StringType: return types.String(d.Prefix.String()) } return types.NewErr("type conversion error from '%s' to '%s'", CIDRType, typeVal) } // Equal implements ref.Val.Equal. func (d CIDR) Equal(other ref.Val) ref.Val { otherD, ok := other.(CIDR) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 12:03:04 UTC 2023 - 2.2K bytes - Viewed (0) -
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) -
src/crypto/tls/handshake_client_test.go
defer close(signalChan) buf := make([]byte, 256) n, err := client.Read(buf) if test.checkRenegotiationError != nil { newErr := test.checkRenegotiationError(i, err) if err != nil && newErr == nil { return } err = newErr } if err != nil { t.Errorf("Client.Read failed after renegotiation #%d: %s", i, err) return } buf = buf[:n]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 88.7K bytes - Viewed (0)