Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2019 Changes in this version + var ErrBadJSONDoc = errors.New("invalid JSON document") + var ErrBadPatchFormatForPrimitiveList = errors.New("invalid patch format of primitive list") + var ErrBadPatchFormatForRetainKeys = errors.New("invalid patch format of retainKeys") + var ErrBadPatchFormatForSetElementOrderList = errors.New("invalid patch format of setElementOrder list") + var ErrNoListOfLists = errors.New("lists of lists are not supported") + var ErrPatchContentNotMatchRetainKeys = errors.New("patch content doesn't match retainKeys list") + var ErrUnsupportedStrategicMergePatchFormat = errors.New("strategic merge patch format is not supported") + func ErrBadArgKind(expected, actual interface{}) error + func ErrBadArgType(expected, actual interface{}) error + func ErrBadPatchType(t interface{}, m map[string]interface{}) error + func ErrNoMergeKey(m map[string]interface{}, k string) error + func HasConflicts(left, right interface{}) (bool, error) + func IsConflict(err error) bool + func IsPreconditionFailed(err error) bool + func ToYAMLOrError(v interface{}) string + type ErrConflict struct + func NewErrConflict(patch, current string) ErrConflict + func (err ErrConflict) Error() string + type ErrPreconditionFailed struct + func NewErrPreconditionFailed(target map[string]interface{}) ErrPreconditionFailed + func (err ErrPreconditionFailed) Error() string + type PreconditionFunc func(interface{}) bool + func RequireKeyUnchanged(key string) PreconditionFunc + func RequireMetadataKeyUnchanged(key string) PreconditionFunc