- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for NewErr (0.15 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/converter.go
} if c.mismatchDetection { newUnstr := map[string]interface{}{} newErr := toUnstructuredViaJSON(obj, &newUnstr) if (err != nil) != (newErr != nil) { klog.Fatalf("ToUnstructured unexpected error for %v: error: %v; newErr: %v", obj, err, newErr) } if err == nil && !c.comparison.DeepEqual(u, newUnstr) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 24.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/ip.go
func (d IP) ConvertToType(typeVal ref.Type) ref.Val { switch typeVal { case IPType: return d case types.TypeType: return IPType case types.StringType: return types.String(d.Addr.String()) } return types.NewErr("type conversion error from '%s' to '%s'", IPType, typeVal) } // Equal implements ref.Val.Equal. func (d IP) Equal(other ref.Val) ref.Val { otherD, ok := other.(IP) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 11:02:33 UTC 2023 - 2.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/format.go
} func (d *Format) ConvertToType(typeVal ref.Type) ref.Val { switch typeVal { case FormatType: return d case types.TypeType: return FormatType default: return types.NewErr("type conversion error from '%s' to '%s'", FormatType, typeVal) } } func (d *Format) Equal(other ref.Val) ref.Val { otherDur, ok := other.(*Format) if !ok { return types.MaybeNoSuchOverloadErr(other) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 1.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/url.go
// ConvertToType implements ref.Val.ConvertToType. func (d URL) ConvertToType(typeVal ref.Type) ref.Val { switch typeVal { case typeValue: return d case types.TypeType: return typeValue } return types.NewErr("type conversion error from '%s' to '%s'", typeValue, typeVal) } // Equal implements ref.Val.Equal. func (d URL) Equal(other ref.Val) ref.Val { otherDur, ok := other.(URL) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 2K bytes - Viewed (0) -
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)