Make Dryad suitable for go-rpcgen
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Fri, 16 Feb 2018 11:32:56 +0000 (12:32 +0100)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Mon, 5 Mar 2018 17:27:46 +0000 (18:27 +0100)
Change-Id: If978d57f924ef730712c5533512ce5792feebca5
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Reviewed-on: https://mcdsrvbld02.digital.local/review/49761
Reviewed-by: Maciej Wereski <m.wereski@partner.samsung.com>
Tested-by: Maciej Wereski <m.wereski@partner.samsung.com>
boruta.go

index 8e1eb6d..3ef255c 100644 (file)
--- 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)
 }