Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPatch ¶
func JoinPatches ¶
JoinPatches joins array of serialized JSON patches to the single JSONPatch array It accepts patch operations and patches (arrays of patch operations) and returns a single combined patch.
func MarshalPatchOperation ¶ added in v1.8.0
Types ¶
type PatchOperation ¶ added in v1.8.0
type PatchOperation struct { Path string `json:"path"` Op string `json:"op"` Value interface{} `json:"value,omitempty"` }
func NewPatchOperation ¶ added in v1.8.0
func NewPatchOperation(path, op string, value interface{}) PatchOperation
func UnmarshalPatchOperation ¶ added in v1.8.0
func UnmarshalPatchOperation(patch []byte) (*PatchOperation, error)
func (*PatchOperation) Marshal ¶ added in v1.8.0
func (p *PatchOperation) Marshal() ([]byte, error)
func (*PatchOperation) ToPatchBytes ¶ added in v1.8.0
func (p *PatchOperation) ToPatchBytes() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.