MCPcopy Create free account
hub / github.com/Azure/ARO-HCP / MergeStringPtrMapIntoResourceIDMap

Function MergeStringPtrMapIntoResourceIDMap

internal/api/utils.go:227–252  ·  view source on GitHub ↗

MergeStringPtrMap merges a map of string pointers into a map of strings following the rules of JSON merge-patch (RFC 7396). In particular, if a key in src has a nil value, that entry is deleted from dst. The function takes a pointer to the dst map in case the dst map is nil and needs to be initializ

(fldPath *field.Path, src map[string]*string, dst *map[string]*azcorearm.ResourceID)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 2

ListMethod · 0.65
ErrorMethod · 0.45

Tested by 1