File: event_fen.go

package info (click to toggle)
golang-github-syncthing-notify 0.0~git20180806.b76b458-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 440 kB
  • sloc: makefile: 3
file content (57 lines) | stat: -rw-r--r-- 2,090 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Copyright (c) 2014-2015 The Notify Authors. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build solaris

package notify

const (
	osSpecificCreate Event = 0x00000100 << iota
	osSpecificRemove
	osSpecificWrite
	osSpecificRename
	// internal
	// recursive is used to distinguish recursive eventsets from non-recursive ones
	recursive
	// omit is used for dispatching internal events; only those events are sent
	// for which both the event and the watchpoint has omit in theirs event sets.
	omit
)

const (
	// FileAccess is an event reported when monitored file/directory was accessed.
	FileAccess = fileAccess
	// FileModified is an event reported when monitored file/directory was modified.
	FileModified = fileModified
	// FileAttrib is an event reported when monitored file/directory's ATTRIB
	// was changed.
	FileAttrib = fileAttrib
	// FileDelete is an event reported when monitored file/directory was deleted.
	FileDelete = fileDelete
	// FileRenameTo to is an event reported when monitored file/directory was renamed.
	FileRenameTo = fileRenameTo
	// FileRenameFrom is an event reported when monitored file/directory was renamed.
	FileRenameFrom = fileRenameFrom
	// FileTrunc is an event reported when monitored file/directory was truncated.
	FileTrunc = fileTrunc
	// FileNoFollow is an flag to indicate not to follow symbolic links.
	FileNoFollow = fileNoFollow
	// Unmounted is an event reported when monitored filesystem was unmounted.
	Unmounted = unmounted
	// MountedOver is an event reported when monitored file/directory was mounted on.
	MountedOver = mountedOver
)

var osestr = map[Event]string{
	FileAccess:     "notify.FileAccess",
	FileModified:   "notify.FileModified",
	FileAttrib:     "notify.FileAttrib",
	FileDelete:     "notify.FileDelete",
	FileRenameTo:   "notify.FileRenameTo",
	FileRenameFrom: "notify.FileRenameFrom",
	FileTrunc:      "notify.FileTrunc",
	FileNoFollow:   "notify.FileNoFollow",
	Unmounted:      "notify.Unmounted",
	MountedOver:    "notify.MountedOver",
}