summaryrefslogtreecommitdiff
path: root/boruta.go
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2018-02-16 12:33:47 +0100
committerMaciej Wereski <m.wereski@partner.samsung.com>2018-03-05 18:28:22 +0100
commitbe315fa65f1f462a8eb8ab8d160acb60d4d19abc (patch)
treedd9a80518c6bb1dd83388f07673b5512bbbeacfe /boruta.go
parent5bd1a19b0a737f973cf3a459bd437795f0a492fc (diff)
downloadboruta-be315fa65f1f462a8eb8ab8d160acb60d4d19abc.tar.gz
boruta-be315fa65f1f462a8eb8ab8d160acb60d4d19abc.tar.bz2
boruta-be315fa65f1f462a8eb8ab8d160acb60d4d19abc.zip
Make Superviser suitable for go-rpcgen
Change-Id: Ieebd76be2278f076d9b20d13f9d6067209926cb7 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com> Reviewed-on: https://mcdsrvbld02.digital.local/review/49763 Reviewed-by: Maciej Wereski <m.wereski@partner.samsung.com> Tested-by: Maciej Wereski <m.wereski@partner.samsung.com>
Diffstat (limited to 'boruta.go')
-rw-r--r--boruta.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/boruta.go b/boruta.go
index 3ef255c..adae8e0 100644
--- a/boruta.go
+++ b/boruta.go
@@ -161,10 +161,10 @@ type Requests interface {
type Superviser interface {
// Register adds a new Worker to the system in the MAINTENANCE state.
// Capabilities are set on the Worker and can be changed by subsequent Register calls.
- Register(caps Capabilities) error
+ Register(caps Capabilities) (err error)
// SetFail notifies the Server about the Failure of the Worker.
// It can additionally contain non-empty reason of the failure.
- SetFail(uuid WorkerUUID, reason string) error
+ SetFail(uuid WorkerUUID, reason string) (err error)
}
// Workers defines all actions that can be done by users and admins on workers.