kubernetes/vendor/k8s.io/utils/inotify/inotify_linux.go

// NewWatcher creates and returns a new inotify instance using inotify_init(2)
func NewWatcher() (*Watcher, error) {}

// Close closes an inotify watcher instance
// It sends a message to the reader goroutine to quit and removes all watches
// associated with the inotify instance
func (w *Watcher) Close() error {}

// AddWatch adds path to the watched file set.
// The flags are interpreted as described in inotify_add_watch(2).
func (w *Watcher) AddWatch(path string, flags uint32) error {}

// Watch adds path to the watched file set, watching all events.
func (w *Watcher) Watch(path string) error {}

// RemoveWatch removes path from the watched file set.
func (w *Watcher) RemoveWatch(path string) error {}

// readEvents reads from the inotify file descriptor, converts the
// received events into Event objects and sends them via the Event channel
func (w *Watcher) readEvents() {}

// String formats the event e in the form
// "filename: 0xEventMask = IN_ACCESS|IN_ATTRIB_|..."
func (e *Event) String() string {}

const InDontFollow

const InOneshot

const InOnlydir

const InAccess

const InAllEvents

const InAttrib

const InClose

const InCloseNowrite

const InCloseWrite

const InCreate

const InDelete

const InDeleteSelf

const InModify

const InMove

const InMovedFrom

const InMovedTo

const InMoveSelf

const InOpen

const InIsdir

const InIgnored

const InQOverflow

const InUnmount

var eventBits