Implement setting groups for worker
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Thu, 8 Jun 2017 13:29:10 +0000 (15:29 +0200)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Wed, 20 Sep 2017 10:48:53 +0000 (12:48 +0200)
commit1249262bb79526bdc47fca79d0a344a4d8b7a64e
treee29c7398516b380c3e98484d78caf79410aff6f3
parent7f1e7b6096002ff38c07bfb286bcc8eb7eca7b60
Implement setting groups for worker

One of the assumptions of Boruta system is that every user will have
access to the limited amount of resources. It is done by groups.
Initially Worker is not assigned to any. In order to add or remove
group from the list a new list should be created and SetGroups used
to replace it.

Change-Id: Id17eb5feab091dbaa90404d8a09bf4e52537fc61
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Reviewed-on: https://mcdsrvbld02.digital.local/review/49060
Reviewed-by: Maciej Wereski <m.wereski@partner.samsung.com>
Tested-by: Maciej Wereski <m.wereski@partner.samsung.com>
workers/worker_list_test.go
workers/workers.go
workers/workers_test.go