Add XDS_SERVER_ROOT_CFG_DIR env var support 47/15447/2
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Wed, 18 Jul 2018 13:41:51 +0000 (15:41 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Wed, 18 Jul 2018 15:52:00 +0000 (17:52 +0200)
commitb4ea2f3048518455b80262c16ebaa80d3cc7bba6
tree73e014baac6a337610559ac5424181907128d3c6
parentf63e5ae6aae50f62c82b3e8132659cb0c627c639
Add XDS_SERVER_ROOT_CFG_DIR env var support

By default xds-server uses $HOME/.xds/server directory to save all
config. This changes allows user to change this root directory by
defining XDS_SERVER_ROOT_CFG_DIR environment variable.

Change-Id: Iebde8dcf2d27b77671c7332bac04295d31659e24
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
lib/xdsconfig/config.go
lib/xdsconfig/fileconfig.go