MCPcopy
hub / github.com/zarf-dev/zarf / ReplacePatchOperation

Function ReplacePatchOperation

src/internal/agent/operations/patch.go:41–47  ·  view source on GitHub ↗

ReplacePatchOperation returns a replace JSON patch operation.

(path string, value interface{})

Source from the content-addressed store, hash-verified

39
40// ReplacePatchOperation returns a replace JSON patch operation.
41func ReplacePatchOperation(path string, value interface{}) PatchOperation {
42 return PatchOperation{
43 Op: replaceOperation,
44 Path: path,
45 Value: value,
46 }
47}
48
49// CopyPatchOperation returns a copy JSON patch operation.
50func CopyPatchOperation(from, path string) PatchOperation {

Calls

no outgoing calls