MCPcopy Create free account
hub / github.com/devspace-sh/devspace / Walk

Function Walk

pkg/devspace/deploy/deployer/kubectl/walk/walk.go:15–17  ·  view source on GitHub ↗

Walk walks over an interface and replaces keys that match the match function with the replace function

(d map[string]interface{}, match MatchFn, replace ReplaceFn)

Source from the content-addressed store, hash-verified

13
14// Walk walks over an interface and replaces keys that match the match function with the replace function
15func Walk(d map[string]interface{}, match MatchFn, replace ReplaceFn) error {
16 return doWalk("", d, match, replace)
17}
18
19// WalkStringMap walks over an interface and replaces keys that match the match function with the replace function
20func WalkStringMap(d map[string]interface{}, match MatchFn, replace ReplaceFn) error {

Callers 6

fillVariablesMethod · 0.92
findVariablesMethod · 0.92
ReplaceImageNamesFunction · 0.92
ResolveAllExpressionsFunction · 0.92
fillVariablesMethod · 0.92
TestWalkFunction · 0.85

Calls 1

doWalkFunction · 0.85

Tested by 1

TestWalkFunction · 0.68