Function
matches
(c container.Summary, predicates ...containerPredicate)
Source from the content-addressed store, hash-verified
| 127 | type containerPredicate func(c container.Summary) bool |
| 128 | |
| 129 | func 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 | |
| 138 | func isService(services ...string) containerPredicate { |
| 139 | return func(c container.Summary) bool { |
Tested by
no test coverage detected