(match *model.ContainerMatch)
| 10 | ) |
| 11 | |
| 12 | func containerSourceLabel(match *model.ContainerMatch) string { |
| 13 | if match.Runtime == "docker" && match.ComposeProject != "" && match.ComposeService != "" { |
| 14 | return fmt.Sprintf("docker-compose: %s/%s", match.ComposeProject, match.ComposeService) |
| 15 | } |
| 16 | if match.Runtime != "" { |
| 17 | return match.Runtime |
| 18 | } |
| 19 | return "container" |
| 20 | } |
| 21 | |
| 22 | // containerChain returns the conceptual ancestry segments for a container: |
| 23 | // runtime → [compose project] → container. |
no outgoing calls
no test coverage detected