summaryrefslogtreecommitdiffstats
path: root/lib/xdsconfig/fileconfig.go
AgeCommit message (Collapse)AuthorFilesLines
2018-10-16update xds-server package in dockerClément Bénier1-8/+18
scripts/package-update: bash scripts to update xds-server package in docker monitor updates: default time is 24h, a update is tried at startup api/v1: 2 new requests: - get(updates): return various information about xds-server packages - post(updates): update xds-server packages Change-Id: I1673f7860e57cfe1d4abe5a24609ee46a90b67d8 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-10-15fileconfig: env variables after default valuesClément Bénier1-7/+7
resolv env variables after setting default values if needed obviously, it will also resolv default values so it will fix EXEPATH bug Change-Id: If334d44374d021f9439288a46ed5827ea3b9fbe2 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-07-18Add XDS_SERVER_ROOT_CFG_DIR env var supportSebastien Douheret1-10/+3
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>
2018-02-23Added target and terminal support.v1.1.0Sebastien Douheret1-0/+7
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-02-06Auto update SDK DB on startup.Sebastien Douheret1-0/+4
Auto update db is enable by default (setting sdkDbUpdate = "startup") but it can be disable by setting sdkDbUpdate to "disable" in server config file. Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-01-10Fixed go linter warnings.Sebastien Douheret1-2/+2
2018-01-05Migration to AGL gerrit (update go import)Sebastien Douheret1-2/+2
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-22Added SDKs management support.Sebastien Douheret1-9/+9
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-11Standardized XDS config file name and location.Sebastien Douheret1-12/+12
- config file name is : server-config.json - xds-server settings under user's home is: $HOME/.xds/server - xds-server settings under etc is: /etc/xds/server Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-30Added Copyright header.Sebastien Douheret1-0/+17
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-06Add Server UUID and use it build CmdID.Sebastien Douheret1-1/+1
2017-11-06Cleanup and improvementsSebastien Douheret1-3/+14
- Save server data into file - FolderType is now a string - cleanup useless code Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-09-18Fix syncthing binary path detection.Sebastien Douheret1-2/+3
2017-09-13Set install dir to /opt/AGL and move conf to $HOME/.xds-serverSebastien Douheret1-11/+21
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-08-16Add folder interface and support native pathmap folder type.Sebastien Douheret1-10/+30
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-06-26Use xds-common go library.Sebastien Douheret1-1/+1
2017-06-20Remove duplicate fields and set default SDK dir.Sebastien Douheret1-17/+19
- Removed duplicate fields between Config and FileConfig - set /xdt/sdk as default SDK directory
2017-05-22Allow to set Syncthing rescanInterval parameter.Sebastien Douheret1-4/+5
2017-05-18Improved ResolveEnvVar and add support of tilde (~/...)Sebastien Douheret1-23/+2
2017-05-17Use autogenerated Synchting apikey.Sebastien Douheret1-3/+4
Except if gui-apikey is set in config.json file. Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-05-17Add SDKs support.Sebastien Douheret1-29/+17
Don't allow to install SDKs through XDS for now. Only probe existing SDKs that have been manually installed using scripts/agl/install-agl-sdks.sh. Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-05-17Auto start Syncthing and Syncthing-inotify.Sebastien Douheret1-6/+8
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-05-15Update doc: add current dir in config.json discovery logic.Sebastien Douheret1-1/+2
2017-05-13Detect undefined env variables used in config.jsonSebastien Douheret1-8/+26
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-05-11Initial main commit.Sebastien Douheret1-0/+133
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>