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

Function getParents

pkg/devspace/config/loader/patch/operation.go:207–219  ·  view source on GitHub ↗
(doc *yaml.Node, path OpPath)

Source from the content-addressed store, hash-verified

205}
206
207func getParents(doc *yaml.Node, path OpPath) ([]*yaml.Node, error) {
208 parentPath, err := yamlpath.NewPath(path.getParentPath())
209 if err != nil {
210 return nil, err
211 }
212
213 parents, err := parentPath.Find(doc)
214 if err != nil {
215 return nil, err
216 }
217
218 return parents, nil
219}

Callers 1

PerformMethod · 0.85

Calls 1

getParentPathMethod · 0.80

Tested by

no test coverage detected