mirror of
https://github.com/docker/cli.git
synced 2026-01-22 03:22:01 +03:00
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn> Upstream-commit: ff2c898652de37f70cd2774a208e61b112d06e1b Component: engine
19 lines
458 B
Go
19 lines
458 B
Go
package filenotify
|
|
|
|
import "gopkg.in/fsnotify.v1"
|
|
|
|
// fsNotifyWatcher wraps the fsnotify package to satisfy the FileNotifer interface
|
|
type fsNotifyWatcher struct {
|
|
*fsnotify.Watcher
|
|
}
|
|
|
|
// Events returns the fsnotify event channel receiver
|
|
func (w *fsNotifyWatcher) Events() <-chan fsnotify.Event {
|
|
return w.Watcher.Events
|
|
}
|
|
|
|
// Errors returns the fsnotify error channel receiver
|
|
func (w *fsNotifyWatcher) Errors() <-chan error {
|
|
return w.Watcher.Errors
|
|
}
|