From: Aleksander Mistewicz Date: Fri, 16 Feb 2018 11:32:56 +0000 (+0100) Subject: Make Dryad suitable for go-rpcgen X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65bf4f697192890bb8540c2e8c8b5d7edd8bbd53;p=tools%2Fboruta.git Make Dryad suitable for go-rpcgen Change-Id: If978d57f924ef730712c5533512ce5792feebca5 Signed-off-by: Aleksander Mistewicz Reviewed-on: https://mcdsrvbld02.digital.local/review/49761 Reviewed-by: Maciej Wereski Tested-by: Maciej Wereski --- diff --git a/boruta.go b/boruta.go index 8e1eb6d..3ef255c 100644 --- a/boruta.go +++ b/boruta.go @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved + * Copyright (c) 2017-2018 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -191,12 +191,12 @@ type Workers interface { type Dryad interface { // PutInMaintenance prepares MuxPi for administrative action. // It blinks LEDs, prints msg on the OLED display, etc. - PutInMaintenance(msg string) error + PutInMaintenance(msg string) (err error) // Prepare creates appropriate user, generates RSA key, installs public key // so that it can be used for SSH authentication and returns private key. // It removes current instance of the user, etc. - Prepare() (*rsa.PrivateKey, error) + Prepare() (key *rsa.PrivateKey, err error) // Healthcheck tests Dryad for system state, STM functions and state on MuxPi. // It may cause Dryad to call SetFail of Worker interface if the problem detected is critical. - Healthcheck() error + Healthcheck() (err error) }