patch

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Patch

type Patch struct {
	// contains filtered or unexported fields
}

func New

func New(curr, mod *unstructured.Unstructured) (_ *Patch, err error)

Attempts to create a 3-way strategic JSON merge patch. Falls back to RFC-7386 if object's type isn't registered

func (*Patch) Merge

func (p *Patch) Merge(obj *unstructured.Unstructured) (err error)

Apply the patch to the resource

func (*Patch) String

func (p *Patch) String() string

Jump to

Keyboard shortcuts

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