summaryrefslogtreecommitdiffstats
path: root/server/lib/external-backends/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/external-backends/index.js')
-rw-r--r--server/lib/external-backends/index.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/server/lib/external-backends/index.js b/server/lib/external-backends/index.js
index c882522..40e462d 100644
--- a/server/lib/external-backends/index.js
+++ b/server/lib/external-backends/index.js
@@ -45,7 +45,8 @@ class ExternalBackends {
return backend
}
- /* Returns an empty array [] if the backends doesn't have the function implemented.
+ /*
+ * Returns an empty array [] if the backends doesn't have the function implemented.
*
* return: ['<SYNC_TYPE>', ...]
*/
@@ -54,6 +55,16 @@ class ExternalBackends {
}
/*
+ * Get the client from the backend and returns their informationen.
+ * credentials: <BACKEND_CREDENTIALS>
+ * client: Information about the client (ip, mac, uuid)
+ *
+ * return:
+ */
+ async getClient (credentials, client) {
+ return { status: 'NOT_IMPLEMENTED_EXCEPTION', error: 'The provided backend does not have a getClient method' }
+ }
+ /*
* credendtials: <BACKEND_CREDENTIALS>
*
* Returns a list of all objects in the backend.