patch

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePatch

func CreatePatch(oldJSON []byte, newObj interface{}, response *v1.AdmissionResponse) error

CreatePatch accepts an old and a new object and creates a patch of the differences as specified in http://jsonpatch.com/ and updates the response accordingly. The old object should be the Raw object received in the original request

Types

This section is empty.

Jump to

Keyboard shortcuts

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