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

Method Remove

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

Remove appends a "remove" operation to patch. > The "remove" operation removes the value at the target location. > > The target location MUST exist for the operation to be successful.

(path ...string)

Source from the content-addressed store, hash-verified

70// >
71// > The target location MUST exist for the operation to be successful.
72func (patch *JSON6902) Remove(path ...string) *JSON6902 {
73 *patch = append(*patch, map[string]any{
74 "op": "remove",
75 "path": patch.pointer(path...),
76 })
77
78 return patch
79}
80
81// Replace appends a "replace" operation to patch.
82//

Callers 2

TestJSON6902Function · 0.45
TestMerge7386Function · 0.45

Calls 1

pointerMethod · 0.95

Tested by 2

TestJSON6902Function · 0.36
TestMerge7386Function · 0.36