MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / NewMergePatch

Function NewMergePatch

internal/controller/runtime/patch.go:119–119  ·  view source on GitHub ↗

NewMergePatch creates a new JSON Merge Patch according to RFC 7386; the same as [types.MergePatchType].

()

Source from the content-addressed store, hash-verified

117
118// NewMergePatch creates a new JSON Merge Patch according to RFC 7386; the same as [types.MergePatchType].
119func NewMergePatch() *Merge7386 { return &Merge7386{} }
120
121// Add modifies patch to indicate that the member at path should be added or
122// replaced with value.

Callers 4

adoptObjectMethod · 0.92
releaseObjectMethod · 0.92
TestMerge7386Function · 0.85
TestMerge7386EquivalenceFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestMerge7386Function · 0.68
TestMerge7386EquivalenceFunction · 0.68