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

Function upDirectionTraversal

pkg/compose/dependencies.go:56–65  ·  view source on GitHub ↗
(visitorFn func(context.Context, string) error)

Source from the content-addressed store, hash-verified

54}
55
56func upDirectionTraversal(visitorFn func(context.Context, string) error) *graphTraversal {
57 return &graphTraversal{
58 extremityNodesFn: (*Graph).Leaves,
59 adjacentNodesFn: (*Vertex).GetParents,
60 filterAdjacentByStatusFn: (*Graph).FilterChildren,
61 adjacentServiceStatusToSkip: ServiceStopped,
62 targetServiceStatus: ServiceStarted,
63 visitorFn: visitorFn,
64 }
65}
66
67func downDirectionTraversal(visitorFn func(context.Context, string) error) *graphTraversal {
68 return &graphTraversal{

Callers 1

InDependencyOrderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected