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

Method UpdateStatus

pkg/compose/dependencies.go:364–368  ·  view source on GitHub ↗

UpdateStatus updates the status of a certain vertex

(key string, status ServiceStatus)

Source from the content-addressed store, hash-verified

362
363// UpdateStatus updates the status of a certain vertex
364func (g *Graph) UpdateStatus(key string, status ServiceStatus) {
365 g.lock.Lock()
366 defer g.lock.Unlock()
367 g.Vertices[key].Status = status
368}
369
370// FilterChildren returns children of a certain vertex that are in a certain status
371func (g *Graph) FilterChildren(key string, status ServiceStatus) []*Vertex {

Callers 1

runMethod · 0.80

Calls 1

LockMethod · 0.45

Tested by

no test coverage detected