summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2017-10-12 14:27:18 +0200
committerMaciej Wereski <m.wereski@partner.samsung.com>2018-03-05 18:29:05 +0100
commita7b61bbdcda0de7d2b434f1834d205341c9c05ea (patch)
treead5451ff51af3f92cafeefc52a3a6e8eb9181539
parent30d0762fdc936d91e9adebc17c2b6b9587eace46 (diff)
downloadboruta-a7b61bbdcda0de7d2b434f1834d205341c9c05ea.tar.gz
boruta-a7b61bbdcda0de7d2b434f1834d205341c9c05ea.tar.bz2
boruta-a7b61bbdcda0de7d2b434f1834d205341c9c05ea.zip
Add boruta_address to dryad configuration
Change-Id: I0627223dc2b4cd9b8c6d17564a20ac334811789f Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com> Reviewed-on: https://mcdsrvbld02.digital.local/review/49595 Reviewed-by: Maciej Wereski <m.wereski@partner.samsung.com> Tested-by: Maciej Wereski <m.wereski@partner.samsung.com>
-rw-r--r--dryad/conf/conf.go2
-rw-r--r--dryad/conf/conf_test.go1
2 files changed, 3 insertions, 0 deletions
diff --git a/dryad/conf/conf.go b/dryad/conf/conf.go
index f2bf265..c12a226 100644
--- a/dryad/conf/conf.go
+++ b/dryad/conf/conf.go
@@ -54,6 +54,8 @@ type User struct {
type General struct {
// Address is used to listen for connection from Boruta.
Address string `toml:"listen_address"`
+ // BorutaAddress is used to connect to Boruta server.
+ BorutaAddress string `toml:"boruta_address"`
// User refers information necessary to create the user.
User *User `toml:"user"`
// SDcard is a base path to block device of sdcard.
diff --git a/dryad/conf/conf_test.go b/dryad/conf/conf_test.go
index 9a2d369..c0b2142 100644
--- a/dryad/conf/conf_test.go
+++ b/dryad/conf/conf_test.go
@@ -28,6 +28,7 @@ import (
var _ = Describe("Conf", func() {
marshaled := `listen_address = ":7175"
+boruta_address = ""
sdcard = "/dev/sdX"
[user]