update xds-server package in docker 29/16929/8
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>
Tue, 16 Oct 2018 12:57:58 +0000 (14:57 +0200)
commit5e979f0ba451e64fc44ffaa8b79d714d9ad75a57
tree6fb6ba51e034ba361fd833b482fb061d4f918da7
parent4982769bd48b5c67c5eff4d9c6f297fa2a7531a4
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: I1673f7860e57cfe1d4abe5a24609ee46a90b67d8
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
16 files changed:
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/sdk.go
lib/xdsserver/sdks.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/xds-utils/getXdsServerPackage [new file with mode: 0755]
scripts/xds-utils/restartXdsServer [new file with mode: 0755]
scripts/xds-utils/updateXdsServerPackage [new file with mode: 0755]