jsonpatch

package
v4.42.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 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