Documentation
¶
Overview ¶
Package watch provides an unprivileged, recursive inotify watcher used to detect changes to the working rootfs without polling/walking the whole tree (which is expensive on network filesystems). It works on any filesystem whose writes go through the kernel VFS, including the sandbox's bind-mounted rootfs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher recursively watches a directory tree and coalesces change events.
func New ¶
New starts watching root (and, recursively, its directories), skipping any path for which ignored returns true. ignored may be nil.
Click to show internal directories.
Click to hide internal directories.