summaryrefslogtreecommitdiffstats
path: root/lib/agent
AgeCommit message (Collapse)AuthorFilesLines
2018-10-17Rework last changes about LD_LIBRARY_PATH issueSebastien Douheret2-13/+12
Last fix that just add unset LD_LIBRARY_PATH in xds-project.conf file was not good enough. Fix problem in xds-server (see https://gerrit.automotivelinux.org/gerrit/#/c/17253/) and this commit just add propagation of new LdLibPathNoReset field in xds-agent. Change-Id: I8312e7d37a54ea6532b8988ca1c825b5d7d51c5d Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-11Reset by default LD_LIBRARY_PATH in xds-project.confSebastien Douheret1-0/+2
New environment-setup-*-agl-linux file, used to set environment variables to use an SDK, now checks if LD_LIBRARY_PATH is set or not. And not empty LD_LIBRARY_PATH is considered as misconfigured and prevent to use SDK. Following is the error message displayed in that case : Your environment is misconfigured, you probably need to 'unset LD_LIBRARY_PATH' but please check why this was set in the first place and that it's safe to unset. The SDK will not operate correctly in most cases when LD_LIBRARY_PATH is set. For more references see: http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80 http://xahlee.info/UnixResource_dir/_/ldpath.html Change-Id: I5f89f68d95a78e9b73f89e487ec74dd314bd5c48 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-06-18Added Supervision/Monitoring supportSebastien Douheret5-6/+354
Added new API supervisor/* to control and get status of AGL XDS Supervisor. Also add new panel in dashboard to control and visualized data collected by the supervision (visualiazation is based on Granafa). Change-Id: I093470f6e384e96a0856b233390e85a98911162e Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-04-05Added target and terminal support in DashboardSebastien Douheret3-1/+112
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-03-13Added api to list and reconnect a XDS-Server.Sebastien Douheret3-5/+147
Added following routes: /servers => list all known XDS-Server /servers/:id => get info of a XDS-Server /servers/:id/reconnect => force reconnection of a XDS-Server Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-02-23Added target and terminal support.v1.1.0Sebastien Douheret6-11/+254
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-02-23Fixed storage of Global and XDS Server configuration.Sebastien Douheret2-0/+24
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-01-23Reworked SDKs events (introduced sdk-state-change)eel_5.0.1eel/5.0.15.0.1Sebastien Douheret1-13/+28
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-01-08Report XDS-server connection failure as an error.Sebastien Douheret1-1/+1
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-01-05Migration to AGL gerrit (update go import)Sebastien Douheret17-60/+63
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-01-04Fixed Xds-server re-connection.Sebastien Douheret3-31/+49
Add a callback on XDS-Server connect in order to properly register to XDS Server events in all cases (IOW on reconnection). Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-23Added new SDKs management supportv1.0.0-rc2Sebastien Douheret6-32/+173
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-15Fixed xds-server folder events detection.Sebastien Douheret4-34/+32
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-11Standardized XDS config file name and location.Sebastien Douheret1-1/+1
- config file name is : agent-config.json - xds-agent settings under user's home is: $HOME/.xds/agent - xds-agent settings under etc is: /etc/xds/agent Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-05Fixed XDS Server connection lost and reconnection.Sebastien Douheret3-24/+43
2017-12-05Improved silly logging.Sebastien Douheret4-17/+16
2017-12-04Added xds-project.conf file creation.Sebastien Douheret2-3/+24
2017-12-01Added copyright headersv1.0.0-rc1Sebastien Douheret17-0/+289
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-29Fixed /exec input stream and /signal.Sebastien Douheret3-41/+168
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-29Renamed apiv1 lib to xaapiv1.Sebastien Douheret11-180/+110
xa prefix (for Xds Agent) is safest to avoid confusion with xs prefix (for Xds Server) Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-24Use Get/Post functions of common.http lib.Sebastien Douheret1-37/+22
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-24Improved and fixed connection to XDS ServerSebastien Douheret1-3/+5
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-24New dashboard improvements.Sebastien Douheret10-45/+176
- add build buttons - add build settings support and backup into project clientData - improved async alert - fixed project dropdown Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-08Added events decoder helpers.Sebastien Douheret1-1/+1
2017-11-08Unregistered events when client WS session is closed.Sebastien Douheret3-14/+9
2017-11-08Fixed events definition and callback processing.Sebastien Douheret4-29/+72
2017-11-06Update api routes name (plural nouns)Sebastien Douheret1-3/+3
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-06Fixed parameter processing for passthrough api.Sebastien Douheret1-2/+14
2017-11-06Use plural nouns for all routes.Sebastien Douheret2-5/+5
2017-11-06Support short project id name if not ambiguous.Sebastien Douheret2-6/+41
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-06Moved all structs exposed by API into apiv1 packageSebastien Douheret15-181/+103
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-10-30Switch from codegangsta/cli to urfave/cli package.Sebastien Douheret1-1/+1
2017-10-16Add sanity check when adding a new pathmap project/folderSebastien Douheret2-8/+62
2017-10-11Fixed Syncthing folder status events and exec command.Sebastien Douheret11-207/+441
2017-10-09Used patched (my) version of go-socket.io.Sebastien Douheret1-1/+1
This version fixes crash when client disconnects unexpectedly.
2017-10-06Added webapp Dashboard + logic to interact with server.Sebastien Douheret16-5/+2227
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-05-23Add API KEY support to allow CORS requests.Sebastien Douheret1-2/+2
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-05-15Initial commit.Sebastien Douheret1-0/+76
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>