github.com/misseven0/notify@v0.0.0-20230519123055-c1422e46da05/event_fen.go (about) 1 // Copyright (c) 2014-2015 The Notify Authors. All rights reserved. 2 // Use of this source code is governed by the MIT license that can be 3 // found in the LICENSE file. 4 5 //go:build solaris || illumos 6 // +build solaris illumos 7 8 package notify 9 10 const ( 11 osSpecificCreate Event = 0x00000100 << iota 12 osSpecificRemove 13 osSpecificWrite 14 osSpecificRename 15 // internal 16 // recursive is used to distinguish recursive eventsets from non-recursive ones 17 recursive 18 // omit is used for dispatching internal events; only those events are sent 19 // for which both the event and the watchpoint has omit in theirs event sets. 20 omit 21 ) 22 23 const ( 24 // FileAccess is an event reported when monitored file/directory was accessed. 25 FileAccess = fileAccess 26 // FileModified is an event reported when monitored file/directory was modified. 27 FileModified = fileModified 28 // FileAttrib is an event reported when monitored file/directory's ATTRIB 29 // was changed. 30 FileAttrib = fileAttrib 31 // FileDelete is an event reported when monitored file/directory was deleted. 32 FileDelete = fileDelete 33 // FileRenameTo to is an event reported when monitored file/directory was renamed. 34 FileRenameTo = fileRenameTo 35 // FileRenameFrom is an event reported when monitored file/directory was renamed. 36 FileRenameFrom = fileRenameFrom 37 // FileTrunc is an event reported when monitored file/directory was truncated. 38 FileTrunc = fileTrunc 39 // FileNoFollow is an flag to indicate not to follow symbolic links. 40 FileNoFollow = fileNoFollow 41 // Unmounted is an event reported when monitored filesystem was unmounted. 42 Unmounted = unmounted 43 // MountedOver is an event reported when monitored file/directory was mounted on. 44 MountedOver = mountedOver 45 ) 46 47 var osestr = map[Event]string{ 48 FileAccess: "notify.FileAccess", 49 FileModified: "notify.FileModified", 50 FileAttrib: "notify.FileAttrib", 51 FileDelete: "notify.FileDelete", 52 FileRenameTo: "notify.FileRenameTo", 53 FileRenameFrom: "notify.FileRenameFrom", 54 FileTrunc: "notify.FileTrunc", 55 FileNoFollow: "notify.FileNoFollow", 56 Unmounted: "notify.Unmounted", 57 MountedOver: "notify.MountedOver", 58 }