patch

package
v0.0.0-...-9ddaaa2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONPatch

type JSONPatch struct {
	// op defines patch operation to be performed on the Endpoints object
	Op string `json:"op"`
	// path defines the location of the patch
	Path string `json:"path"`
	// value defines the data to be patched
	Value interface{} `json:"value,omitempty"`
}

JSONPatch describes a patch operation

func NewJSONPatch

func NewJSONPatch(op, path string, value interface{}) *JSONPatch

NewJSONPatch returns a pointer to a JSONPatch

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL