Documentation
¶
Overview ¶
Copyright (c) Walmart Inc.
This source code is licensed under the Apache 2.0 license found in the LICENSE file in the root directory of this source tree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInterfaceError ¶
Types ¶
type InterfaceError ¶
type InterfaceError struct{}
func (InterfaceError) Error ¶
func (InterfaceError) Error() string
type PatchError ¶
type PatchError struct {
// contains filtered or unexported fields
}
func NewPatchError ¶
func NewPatchError(format string, args ...interface{}) PatchError
Create a PathError object for capturing internal errors.
func (PatchError) Error ¶
func (err PatchError) Error() string
type PathElement ¶
type PathElement interface { GetIndex() int GetKey() reflect.Value GetName() string IsPointer() bool Equals(PathElement) bool fmt.Stringer }
func NewFieldElem ¶
func NewFieldElem(index int, name string) PathElement
Create a Struct Field PathElement.
func NewIndexElem ¶
func NewIndexElem(index int) PathElement
Create an Array/Slice Index PathElement.
type SettableChange ¶
func NewValueAddition ¶
func NewValueAddition(path []PathElement, newValue reflect.Value) SettableChange
func NewValueChange ¶
func NewValueChange(path []PathElement, oldValue reflect.Value, newValue reflect.Value) SettableChange
func NewValueDeletion ¶
func NewValueDeletion(path []PathElement, oldValue reflect.Value) SettableChange
Click to show internal directories.
Click to hide internal directories.