inotify

package
v5.9.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IN_ALL_EVENTS = syscall.IN_ALL_EVENTS
	IN_IGNORED    = syscall.IN_IGNORED

	IN_MODIFY = syscall.IN_MODIFY
	IN_ATTRIB = syscall.IN_ATTRIB

	IN_MOVE_SELF  = syscall.IN_MOVE_SELF
	IN_MOVED_FROM = syscall.IN_MOVED_FROM
	IN_MOVED_TO   = syscall.IN_MOVED_TO

	IN_DELETE_SELF = syscall.IN_DELETE_SELF
	IN_DELETE      = syscall.IN_DELETE

	IN_CREATE = syscall.IN_CREATE
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Path string
	Name string
	// contains filtered or unexported fields
}

func (*Event) InAttrib

func (this *Event) InAttrib() bool

func (*Event) InCreate

func (this *Event) InCreate() bool

func (*Event) InDelete

func (this *Event) InDelete() bool

func (*Event) InDeleteSelf

func (this *Event) InDeleteSelf() bool

func (*Event) InIgnored

func (this *Event) InIgnored() bool

func (*Event) InModify

func (this *Event) InModify() bool

func (*Event) InMoveSelf

func (this *Event) InMoveSelf() bool

func (*Event) InMovedFrom

func (this *Event) InMovedFrom() bool

func (*Event) InMovedTo

func (this *Event) InMovedTo() bool

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher() (*Watcher, error)

func (*Watcher) AddWatch

func (this *Watcher) AddWatch(path string, mask uint32) error

func (*Watcher) Free

func (this *Watcher) Free()

func (*Watcher) IsUnreadEvent

func (this *Watcher) IsUnreadEvent(event *Event) bool

func (*Watcher) ReadEvents

func (this *Watcher) ReadEvents() ([]*Event, error)

func (*Watcher) RmWatch

func (this *Watcher) RmWatch(path string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL