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

Struct Watcher

pkg/compose/watch.go:52–58  ·  pkg/compose/watch.go::Watcher

Source from the content-addressed store, hash-verified

50type WatchFunc func(ctx context.Context, project *types.Project, options api.WatchOptions) (func() error, error)
51
52type Watcher struct {
53 project *types.Project
54 options api.WatchOptions
55 watchFn WatchFunc
56 stopFn func()
57 errCh chan error
58}
59
60func NewWatcher(project *types.Project, options api.UpOptions, w WatchFunc, consumer api.LogConsumer) (*Watcher, error) {
61 for i := range project.Services {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected