Exemplo n.º 1
0
Arquivo: node.go Projeto: rnd-ua/scope
func containerParent(n report.Node) Parent {
	label, _ := render.GetRenderableContainerName(n)
	return Parent{
		ID:         render.MakeContainerID(n.Metadata[docker.ContainerID]),
		Label:      label,
		TopologyID: "containers",
	}
}
Exemplo n.º 2
0
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",
	}
}
Exemplo n.º 3
0
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),
	}
}
Exemplo n.º 4
0
func containerNodeSummary(nmd report.Node) NodeSummary {
	label, _ := render.GetRenderableContainerName(nmd)
	containerID, _ := nmd.Latest.Lookup(docker.ContainerID)
	return baseNodeSummary(render.MakeContainerID(containerID), label, true, nmd)
}