- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for NewErr (0.09 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedmanager.go
newLiveObj, newManaged, newErr := f.fieldManager.Apply(liveObj, newObj, managed, manager, force) // Upgrade the client-side apply annotation only from kubectl server-side-apply. // To opt-out of this behavior, users may specify a different field manager. if manager != "kubectl" { return newLiveObj, newManaged, newErr } // Check if we have conflicts if newErr == nil { return newLiveObj, newManaged, newErr }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 5.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go
if a.result.Error != nil { return types.NewErr("composited variable %q fails to compile: %v", a.name, a.result.Error) } v, details, err := a.result.Program.ContextEval(a.context, a.activation) if details == nil { return types.NewErr("unable to get evaluation details of variable %q", a.name) } costPtr := details.ActualCost() if costPtr == nil { return types.NewErr("unable to calculate cost of variable %q", a.name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 13 21:06:39 UTC 2024 - 7.4K bytes - Viewed (0) -
pkg/structured/structured.go
return "" } return fmt.Sprintf("\tmoreInfo=%s impact=%s action=%s likelyCause=%s err=%v", e.MoreInfo, e.Impact, e.Action, e.LikelyCause, e.Err) } // NewErr creates a new copy of an Error with the content of serr and err and returns a ptr to it. func NewErr(serr *Error, err error) *Error { // Make a copy so that dictionary entry is not modified. ne := *serr ne.Err = err return &ne }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jul 15 23:58:50 UTC 2023 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy.go
func (m *MapValue) ConvertToType(typeVal ref.Type) ref.Val { switch typeVal { case m.typeValue: return m case types.TypeType: return m.typeValue } return types.NewErr("disallowed conversion from %q to %q", m.typeValue.TypeName(), typeVal.TypeName()) } // Equal returns true if the other object is the same pointer-wise. func (m *MapValue) Equal(other ref.Val) ref.Val {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/quantity.go
} func (d Quantity) ConvertToType(typeVal ref.Type) ref.Val { switch typeVal { case quantityTypeValue: return d case types.TypeType: return quantityTypeValue default: return types.NewErr("type conversion error from '%s' to '%s'", quantityTypeValue, typeVal) } } func (d Quantity) Equal(other ref.Val) ref.Val { otherDur, ok := other.(Quantity) if !ok { return types.MaybeNoSuchOverloadErr(other)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 11:23:54 UTC 2024 - 2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/regex.go
} regex, ok := regexVal.Value().(string) if !ok { return types.MaybeNoSuchOverloadErr(regexVal) } re, err := regexp.Compile(regex) if err != nil { return types.NewErr("Illegal regex: %v", err.Error()) } result := re.FindString(str) return types.String(result) } func findAll(args ...ref.Val) ref.Val { argn := len(args) if argn < 2 || argn > 3 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 5.7K 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)