MCPcopy
hub / github.com/docker/compose / matches

Function matches

pkg/compose/containers.go:129–136  ·  view source on GitHub ↗
(c container.Summary, predicates ...containerPredicate)

Source from the content-addressed store, hash-verified

127type containerPredicate func(c container.Summary) bool
128
129func matches(c container.Summary, predicates ...containerPredicate) bool {
130 for _, predicate := range predicates {
131 if !predicate(c) {
132 return false
133 }
134 }
135 return true
136}
137
138func isService(services ...string) containerPredicate {
139 return func(c container.Summary) bool {

Callers 1

filterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected