kubernetesk8s.io/kubernetes/pkg/util/strategicpatch Index | Files

package strategicpatch

import "k8s.io/kubernetes/pkg/util/strategicpatch"

Index

Functions

func StrategicMergePatchData

func StrategicMergePatchData(original, patch []byte, dataStruct interface{}) ([]byte, error)

An alternate implementation of JSON Merge Patch (https://tools.ietf.org/html/rfc7386) which supports the ability to annotate certain fields with metadata that indicates whether the elements of JSON lists should be merged or replaced.

For more information, see the PATCH section of docs/api-conventions.md.

Types

type SortableSliceOfMaps

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

func (SortableSliceOfMaps) Len

func (ss SortableSliceOfMaps) Len() int

func (SortableSliceOfMaps) Less

func (ss SortableSliceOfMaps) Less(i, j int) bool

func (SortableSliceOfMaps) Swap

func (ss SortableSliceOfMaps) Swap(i, j int)

type SortableSliceOfScalars

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

func (SortableSliceOfScalars) Len

func (ss SortableSliceOfScalars) Len() int

func (SortableSliceOfScalars) Less

func (ss SortableSliceOfScalars) Less(i, j int) bool

func (SortableSliceOfScalars) Swap

func (ss SortableSliceOfScalars) Swap(i, j int)

Source Files

patch.go

Version
v0.16.2
Published
May 4, 2015
Platform
js/wasm
Imports
5 packages
Last checked
3 minutes ago

Tools for package owners.