Verified Commit 8ea9b644 authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: orchestrator plugin

Dev Manual - orchetrator plugin
parent 2014f881
No related merge requests found
Showing with 80 additions and 0 deletions
+80 -0
========================
Development Orchestrator
========================
.. toctree::
:maxdepth: 2
orchDevPlugin.rst
===================
Orchestrator plugin
===================
This guide will help you get started with development within our GitLab environment.
It covers account creation, issue creation, project forking, and submitting a Merge Request (MR).
----------------------------
1. Orchestrator contribution
----------------------------
Please follow how to create an account, fork a project, create an MR and creating issues from FusionDirectory development section.
Exact same methodology will apply for your orchestrator plugin if you want it to be contributed within the main project.
With that said, let's see how to create a plugin, a new orchestrator endpoints.
------------------
2. Class structure
------------------
**Your class must implements the interface "EndPointInterface"**
In order to interact with many defined methods, including LDAP interaction, we received a "gateway" object.
class anOrchestratorPluginClass implements EndpointInterface
{
private TaskGateway $gateway;
public function __construct (TaskGateway $gateway)
{
$this->gateway = $gateway;
}
/**
* @return array
* Part of the interface of orchestrator plugin to treat GET method
*/
public function processEndPointGet (): array
{
}
/**
* @param array|null $data
* @return array
*/
public function processEndPointPost (array $data = NULL): array
{
return [];
}
/**
* @param array|NULL $data
* @return array
*/
public function processEndPointDelete (array $data = NULL): array
{
return [];
}
/**
* @param array|NULL $data
* @return array
* @throws Exception
*/
public function processEndPointPatch (array $data = NULL): array
{
}
}
\ No newline at end of file
......@@ -6,3 +6,4 @@ FusionDirectory Orchestrator
whatis/orchestrator.rst
requirements/mandatory.rst
development/index.rst
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment