- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewErrPreconditionFailed (0.22 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/mergepatch/errors.go
// a precondition failed. func IsPreconditionFailed(err error) bool { _, ok := err.(ErrPreconditionFailed) return ok } type ErrPreconditionFailed struct { message string } func NewErrPreconditionFailed(target map[string]interface{}) ErrPreconditionFailed { s := fmt.Sprintf("precondition failed for: %v", target) return ErrPreconditionFailed{s} } func (err ErrPreconditionFailed) Error() string {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 13:12:11 UTC 2017 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/jsonmergepatch/patch.go
} meetPreconditions, err := meetPreconditions(patchMap, fns...) if err != nil { return nil, err } if !meetPreconditions { return nil, mergepatch.NewErrPreconditionFailed(patchMap) } return patch, nil } // keepOrDeleteNullInJsonPatch takes a json-encoded byte array and a boolean. // It returns a filtered object and its corresponding json-encoded byte array.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 4.8K bytes - Viewed (0)