12345678910111213141516171819202122 |
- package render
- import (
- "github.com/weaveworks/scope/report"
- )
- // SwarmServiceRenderer is a Renderer for Docker Swarm services
- //
- // not memoised
- var SwarmServiceRenderer = ConditionalRenderer(renderSwarmTopologies,
- renderParents(
- report.Container, []string{report.SwarmService}, UnmanagedID,
- MakeFilter(
- IsRunning,
- ContainerWithImageNameRenderer,
- ),
- ),
- )
- func renderSwarmTopologies(rpt report.Report) bool {
- return len(rpt.SwarmService.Nodes) >= 1
- }
|