kubernetes/vendor/gopkg.in/evanphx/json-patch.v4/patch.go

const eRaw

const eDoc

const eAry

var SupportNegativeIndices

var AccumulatedCopySizeLimit

var ErrTestFailed

var ErrMissing

var ErrUnknownType

var ErrInvalid

var ErrInvalidIndex

type lazyNode

type Operation

type Patch

type partialDoc

type partialArray

type container

func newLazyNode(raw *json.RawMessage) *lazyNode {}

func (n *lazyNode) MarshalJSON() ([]byte, error) {}

func (n *lazyNode) UnmarshalJSON(data []byte) error {}

func deepCopy(src *lazyNode) (*lazyNode, int, error) {}

func (n *lazyNode) intoDoc() (*partialDoc, error) {}

func (n *lazyNode) intoAry() (*partialArray, error) {}

func (n *lazyNode) compact() []byte {}

func (n *lazyNode) tryDoc() bool {}

func (n *lazyNode) tryAry() bool {}

func (n *lazyNode) equal(o *lazyNode) bool {}

// Kind reads the "op" field of the Operation.
func (o Operation) Kind() string {}

// Path reads the "path" field of the Operation.
func (o Operation) Path() (string, error) {}

// From reads the "from" field of the Operation.
func (o Operation) From() (string, error) {}

func (o Operation) value() *lazyNode {}

// ValueInterface decodes the operation value into an interface.
func (o Operation) ValueInterface() (interface{}

func isArray(buf []byte) bool {}

func findObject(pd *container, path string) (container, string) {}

func (d *partialDoc) set(key string, val *lazyNode) error {}

func (d *partialDoc) add(key string, val *lazyNode) error {}

func (d *partialDoc) get(key string) (*lazyNode, error) {}

func (d *partialDoc) remove(key string) error {}

// set should only be used to implement the "replace" operation, so "key" must
// be an already existing index in "d".
func (d *partialArray) set(key string, val *lazyNode) error {}

func (d *partialArray) add(key string, val *lazyNode) error {}

func (d *partialArray) get(key string) (*lazyNode, error) {}

func (d *partialArray) remove(key string) error {}

func (p Patch) add(doc *container, op Operation) error {}

func (p Patch) remove(doc *container, op Operation) error {}

func (p Patch) replace(doc *container, op Operation) error {}

func (p Patch) move(doc *container, op Operation) error {}

func (p Patch) test(doc *container, op Operation) error {}

func (p Patch) copy(doc *container, op Operation, accumulatedCopySize *int64) error {}

// Equal indicates if 2 JSON documents have the same structural equality.
func Equal(a, b []byte) bool {}

// DecodePatch decodes the passed JSON document as an RFC 6902 patch.
func DecodePatch(buf []byte) (Patch, error) {}

// Apply mutates a JSON document according to the patch, and returns the new
// document.
func (p Patch) Apply(doc []byte) ([]byte, error) {}

// ApplyIndent mutates a JSON document according to the patch, and returns the new
// document indented.
func (p Patch) ApplyIndent(doc []byte, indent string) ([]byte, error) {}

var rfc6901Decoder

func decodePatchKey(k string) string {}