func containerParent(n report.Node) Parent { label, _ := render.GetRenderableContainerName(n) return Parent{ ID: render.MakeContainerID(n.Metadata[docker.ContainerID]), Label: label, TopologyID: "containers", } }
func containerParent(n report.Node) Parent { label, _ := render.GetRenderableContainerName(n) containerID, _ := n.Latest.Lookup(docker.ContainerID) return Parent{ ID: render.MakeContainerID(containerID), Label: label, TopologyID: "containers", } }
func containerNodeSummary(nmd report.Node) NodeSummary { label, _ := render.GetRenderableContainerName(nmd) return NodeSummary{ ID: render.MakeContainerID(nmd.Metadata[docker.ContainerID]), Label: label, Linkable: true, Metadata: containerNodeMetadata(nmd), Metrics: containerNodeMetrics(nmd), } }
func containerNodeSummary(nmd report.Node) NodeSummary { label, _ := render.GetRenderableContainerName(nmd) containerID, _ := nmd.Latest.Lookup(docker.ContainerID) return baseNodeSummary(render.MakeContainerID(containerID), label, true, nmd) }