From af9482a0c6ebef83226829fb2a126d5ca9424ffd Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Wed, 29 Aug 2018 11:28:53 +0000 Subject: [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. --- server/lib/external-backends/index.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'server/lib/external-backends/index.js') 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: ['', ...] */ @@ -53,6 +54,16 @@ class ExternalBackends { return [] } + /* + * Get the client from the backend and returns their informationen. + * 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: * -- cgit v1.2.3-55-g7522