Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProcFsFd = "/proc/self/fd" ProcFsFdInfo = "/proc/self/fdinfo" )
Procfs constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Name_ string // Relative path to the file or directory. Op_ Op // File operation that triggered the event. }
Event represents a single file system notification.
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func (*Watcher) ResponseAllow ¶
func (w *Watcher) ResponseAllow(ev *unix.FanotifyEventMetadata) error
func (*Watcher) ResponseDeny ¶
func (w *Watcher) ResponseDeny(ev *unix.FanotifyEventMetadata) error
ResponseDeny sends a deny message back to fanotify, used for permission checks.
Click to show internal directories.
Click to hide internal directories.