MCPcopy
hub / github.com/docker/compose / GetParents

Method GetParents

pkg/compose/dependencies.go:223–229  ·  view source on GitHub ↗

GetParents returns a slice with the parent vertices of the Vertex

()

Source from the content-addressed store, hash-verified

221
222// GetParents returns a slice with the parent vertices of the Vertex
223func (v *Vertex) GetParents() []*Vertex {
224 var res []*Vertex
225 for _, p := range v.Parents {
226 res = append(res, p)
227 }
228 return res
229}
230
231// getAncestors return all descendents for a vertex, might contain duplicates
232func getAncestors(v *Vertex) []*Vertex {

Callers 1

getAncestorsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected