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

Function NewVertex

pkg/compose/dependencies.go:289–297  ·  view source on GitHub ↗

NewVertex is the constructor function for the Vertex

(key string, service string, initialStatus ServiceStatus)

Source from the content-addressed store, hash-verified

287
288// NewVertex is the constructor function for the Vertex
289func NewVertex(key string, service string, initialStatus ServiceStatus) *Vertex {
290 return &Vertex{
291 Key: key,
292 Service: service,
293 Status: initialStatus,
294 Parents: map[string]*Vertex{},
295 Children: map[string]*Vertex{},
296 }
297}
298
299// AddVertex adds a vertex to the Graph
300func (g *Graph) AddVertex(key string, service string, initialStatus ServiceStatus) {

Callers 1

AddVertexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected