MCPcopy
hub / github.com/pranshuparmar/witr / containerSourceLabel

Function containerSourceLabel

internal/output/docker.go:12–20  ·  view source on GitHub ↗
(match *model.ContainerMatch)

Source from the content-addressed store, hash-verified

10)
11
12func 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.

Callers 2

RenderContainerFallbackFunction · 0.85
ContainerFallbackToJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected