mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
39bcaee47b
* additional * ambiguous * anonymous * anything * application * because * before * building * capabilities * circumstances * commit * committer * compresses * concatenated * config * container * container's * current * definition * delimiter * disassociates * discovery * distributed * doesnotexist * downloads * duplicates * either * enhancing * enumerate * escapable * exactly * expect * expectations * expected * explicitly * false * filesystem * following * forbidden * git with * healthcheck * ignore * independent * inheritance * investigating * irrelevant * it * logging * looking * membership * mimic * minimum * modify * mountpoint * multiline * notifier * outputting * outside * overridden * override * parsable * plugins * precedence * propagation * provided * provides * registries * repositories * returning * settings * should * signals * someone * something * specifically * successfully * synchronize * they've * thinking * uninitialized * unintentionally * unmarshaling * unnamed * unreferenced * verify Signed-off-by: Josh Soref <jsoref@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
18 lines
467 B
Go
18 lines
467 B
Go
package filenotify
|
|
|
|
import "github.com/fsnotify/fsnotify"
|
|
|
|
// fsNotifyWatcher wraps the fsnotify package to satisfy the FileNotifier 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
|
|
}
|