Rework search directories for agent-config.json files.
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Tue, 19 Sep 2017 08:25:55 +0000 (10:25 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Tue, 19 Sep 2017 08:25:55 +0000 (10:25 +0200)
commit3f1c6dbe6b6422d8fdb70a2ef1899b9c32d1fc7e
treec8c876a6691dc160c09d238ded4d3f407e84899c
parent1c6af6236743aa0963d4919b5ef42627efa6aca7
Rework search directories for agent-config.json files.

Here is the logic to determine which `agent-config.json` file will be used:

1. from command line option: `--config myConfig.json`
2. `$HOME/.xds/agent/agent-config.json` file
3. `/etc/xds-agent/agent-config.json` file
4. `<xds-agent executable dir>/agent-config.json` file
README.md
lib/xdsconfig/fileconfig.go