update xds-server package in docker 69/16869/2 sandbox/benierc/xds-server-update-pkg
authorClément Bénier <clement.benier@iot.bzh>
Mon, 1 Oct 2018 09:51:47 +0000 (11:51 +0200)
committerClément Bénier <clement.benier@iot.bzh>
Mon, 1 Oct 2018 09:57:48 +0000 (11:57 +0200)
commit2e17a524738982174794370a2bb609872608a5ac
tree91eda98e97032493cf614a8a35a262500c916d99
parent95293a7ee22cfff9c49a19bd7ae205529d812fa9
update xds-server package in docker

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: I34613be916bb29c2cce13ca1cce1e384365872f7
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
15 files changed:
Makefile
conf.d/etc/xds/server/server-config.json
lib/xdsconfig/config.go
lib/xdsconfig/fileconfig.go
lib/xdsserver/apiv1-exec.go
lib/xdsserver/apiv1-sdks.go
lib/xdsserver/apiv1-updates.go [new file with mode: 0644]
lib/xdsserver/apiv1.go
lib/xdsserver/webserver.go
lib/xdsserver/xds-server-update.go [new file with mode: 0644]
lib/xdsserver/xdsserver.go
lib/xsapiv1/xds-server-update.go [new file with mode: 0644]
scripts/package-update/getXdsServerPackage [new file with mode: 0755]
scripts/package-update/restartXdsServer [new file with mode: 0755]
scripts/package-update/updateXdsServerPackage [new file with mode: 0755]