The plugin context is an object containing a set of constructors, accessors and configurations, allowing plugins to interact with Kuzzle.
A plugin context is provided by Kuzzle to plugins when calling their
Each plugin receives its own plugin context instance.
Here is the list of shared objects contained in the provided
|Access to Kuzzle API.|
|Trigger a custom event.|
|Initiate and configure to the plugin storage. This storage can only be accessed by the plugin and can be used to persist plugin datas.|
|Access to validation mechanisms, useful to validate documents and add field types.|
|Contains the entire Kuzzle instance configuration (most of it coming from Kuzzle configuration file)|
|Constructor allowing plugins to instantiate their own Kuzzle real-time engine instance|
|Constructor allowing plugins to instantiate their Repositories allowing them to interact with their plugin storage|
|Constructor for standardized requests sent to Kuzzle|
|Constructor for the Validation Type base constructor|
|Kuzzle error constructors, built dynamically from available Kuzzle error objects at runtime|
|Provides methods to log messages depending on their priority level|