summaryrefslogtreecommitdiffstats
path: root/server/lib/external-backends/index.js
diff options
context:
space:
mode:
authorJannik Schönartz2018-08-29 13:28:53 +0200
committerJannik Schönartz2018-08-29 13:28:53 +0200
commitaf9482a0c6ebef83226829fb2a126d5ca9424ffd (patch)
treed235ea088cb7e02c8c74b143b973cd780feabbb2 /server/lib/external-backends/index.js
parent[external-backends] Use search table instead of datatables (diff)
downloadbas-af9482a0c6ebef83226829fb2a126d5ca9424ffd.tar.gz
bas-af9482a0c6ebef83226829fb2a126d5ca9424ffd.tar.xz
bas-af9482a0c6ebef83226829fb2a126d5ca9424ffd.zip
[external-backends] Add getClient methods for all backends
Delete dummy and another backends. Extend template-dummy for testing stuff. Add getClient method for dhcp and idoit backends. Fixed appendicon for selections.
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.