patch

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package patch provides a simple wrapper around the strategic merge patch

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StrategicMerge

func StrategicMerge[T any](original, patch T) (result T, err error)

StrategicMerge is a wrapper around the StrategicMergePatch function that takes in a generic type and returns a generic type.

func StrategicMergePatch

func StrategicMergePatch[T any](original T, patchData []byte) (result T, err error)

StrategicMergePatch is a wrapper around the strategicpatch.StrategicMergePatch function that takes in a generic type and returns a generic type.

Types

type PatchMetaFromOpenAPI3 added in v0.5.0

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

PatchMetaFromOpenAPI3 is a PatchMetaFromOpenAPI3 implementation that uses openapi3.

func NewPatchMetaFromOpenAPI3 added in v0.5.0

func NewPatchMetaFromOpenAPI3(s rest.Interface) *PatchMetaFromOpenAPI3

NewPatchMetaFromOpenAPI3 creates a new PatchMetaFromOpenAPI3.

func (*PatchMetaFromOpenAPI3) Lookup added in v0.5.0

Lookup returns the patch metadata for the given group-version-resource.

Jump to

Keyboard shortcuts

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