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

Function NewCompositeMatcher

pkg/watch/notify.go:106–111  ·  view source on GitHub ↗
(matchers ...PathMatcher)

Source from the content-addressed store, hash-verified

104}
105
106func NewCompositeMatcher(matchers ...PathMatcher) PathMatcher {
107 if len(matchers) == 0 {
108 return EmptyMatcher{}
109 }
110 return CompositePathMatcher{Matchers: matchers}
111}
112
113func (c CompositePathMatcher) Matches(f string) (bool, error) {
114 for _, t := range c.Matchers {

Callers 2

getWatchRulesFunction · 0.92
initialSyncMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected