Future of custom actions #654
-
Now that plugins are added to sftpgo, what's the future of custom actions? Are they going to be deprecated eventually? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi, Although plugins and hooks may overlap in some cases, they cater to a different user base/use case. For example for system admins is quite easy to write a bash script and use it as hook. Plugins allow me to provide ready-to-use functionality for uncommon use cases without adding the implementation within SFTPGo. For example some users in the past have asked for integration with pub/sub systems, adding them directly in SFTPGo would significantly increase the size of the binary, a plugin offers a ready-to-use solution without adding a feature that many users do not use directly in SFTPGo. Notification hooks are still useful for more specialized use cases and for people that want to integrate SFTPGo in their system without writing Go code. Although plugins can be written in any programming language it is unlikely that anyone will write a plugin in PHP and so some users would prefer the hook system. So I want to support both plugins and hooks and let users choose what best fits their use cases. For now I am thinking of plugins as a way that allows me to extend SFTPGo, let's see in the future if others will contribute other plugins or improve existing ones |
Beta Was this translation helpful? Give feedback.
-
Now that EventManager is available since v2.4.0, in which case one should be used instead of another ? By reading the documentation, EventManager and custom actions allows to do nearly the same things. In which case, do you recommend to use custom actions instead of EventManager ? Have you planned to depreciate custom actions in advantage of EventManager or it is still safe to use it ? |
Beta Was this translation helpful? Give feedback.
Hi,
Although plugins and hooks may overlap in some cases, they cater to a different user base/use case. For example for system admins is quite easy to write a bash script and use it as hook.
Plugins allow me to provide ready-to-use functionality for uncommon use cases without adding the implementation within SFTPGo. For example some users in the past have asked for integration with pub/sub systems, adding them directly in SFTPGo would significantly increase the size of the binary, a plugin offers a ready-to-use solution without adding a feature that many users do not use directly in SFTPGo. Notification hooks are still useful for more specialized use cases and for people that want to inte…