jsonpatch

package
v4.106.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONop

type JSONop string

JSONop is used to define what type of patch should be used

const (
	// JSONopRemove remove path
	JSONopRemove JSONop = "remove"
	// JSONopAdd add given value to path
	JSONopAdd JSONop = "add"
	// JSONopNone noop
	JSONopNone JSONop = "none"
	// JSONopReplace replace value at the given path
	JSONopReplace JSONop = "replace"
)

type JSONpatch

type JSONpatch struct {
	Op    JSONop `json:"op,omitempty"`
	Path  string `json:"path,omitempty"`
	Value string `json:"value,omitempty"`
}

JSONpatch describes a JSON patch that can be used against he k8s API

Jump to

Keyboard shortcuts

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