(services ...string)
| 136 | } |
| 137 | |
| 138 | func isService(services ...string) containerPredicate { |
| 139 | return func(c container.Summary) bool { |
| 140 | service := c.Labels[api.ServiceLabel] |
| 141 | return slices.Contains(services, service) |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | // isOrphaned is a predicate to select containers without a matching service definition in compose project |
| 146 | func isOrphaned(project *types.Project) containerPredicate { |
no outgoing calls
no test coverage detected