event_fen.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. // +build solaris
  5. package notify
  6. const (
  7. osSpecificCreate Event = 0x00000100 << iota
  8. osSpecificRemove
  9. osSpecificWrite
  10. osSpecificRename
  11. // internal
  12. // recursive is used to distinguish recursive eventsets from non-recursive ones
  13. recursive
  14. // omit is used for dispatching internal events; only those events are sent
  15. // for which both the event and the watchpoint has omit in theirs event sets.
  16. omit
  17. )
  18. const (
  19. // FileAccess is an event reported when monitored file/directory was accessed.
  20. FileAccess = fileAccess
  21. // FileModified is an event reported when monitored file/directory was modified.
  22. FileModified = fileModified
  23. // FileAttrib is an event reported when monitored file/directory's ATTRIB
  24. // was changed.
  25. FileAttrib = fileAttrib
  26. // FileDelete is an event reported when monitored file/directory was deleted.
  27. FileDelete = fileDelete
  28. // FileRenameTo to is an event reported when monitored file/directory was renamed.
  29. FileRenameTo = fileRenameTo
  30. // FileRenameFrom is an event reported when monitored file/directory was renamed.
  31. FileRenameFrom = fileRenameFrom
  32. // FileTrunc is an event reported when monitored file/directory was truncated.
  33. FileTrunc = fileTrunc
  34. // FileNoFollow is an flag to indicate not to follow symbolic links.
  35. FileNoFollow = fileNoFollow
  36. // Unmounted is an event reported when monitored filesystem was unmounted.
  37. Unmounted = unmounted
  38. // MountedOver is an event reported when monitored file/directory was mounted on.
  39. MountedOver = mountedOver
  40. )
  41. var osestr = map[Event]string{
  42. FileAccess: "notify.FileAccess",
  43. FileModified: "notify.FileModified",
  44. FileAttrib: "notify.FileAttrib",
  45. FileDelete: "notify.FileDelete",
  46. FileRenameTo: "notify.FileRenameTo",
  47. FileRenameFrom: "notify.FileRenameFrom",
  48. FileTrunc: "notify.FileTrunc",
  49. FileNoFollow: "notify.FileNoFollow",
  50. Unmounted: "notify.Unmounted",
  51. MountedOver: "notify.MountedOver",
  52. }