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

Function isSync

pkg/compose/watch.go:342–344  ·  view source on GitHub ↗
(trigger types.Trigger)

Source from the content-addressed store, hash-verified

340}
341
342func isSync(trigger types.Trigger) bool {
343 return trigger.Action == types.WatchActionSync || trigger.Action == types.WatchActionSyncRestart
344}
345
346func (s *composeService) watchEvents(ctx context.Context, project *types.Project, options api.WatchOptions, watcher watch.Notify, syncer sync.Syncer, rules []watchRule) error {
347 ctx, cancel := context.WithCancel(ctx)

Callers 1

watchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected