Commit Graph

162 Commits

Author SHA1 Message Date
Tom Wilkie
ffa955a21b Split and move xfer package. 2016-01-06 14:01:39 +00:00
Tom Wilkie
6259307491 Don't use a global variable to store the pipe client. 2015-12-10 15:44:25 +00:00
Tom Wilkie
3a344f12ea Backend review feedback 2015-12-10 12:53:31 +00:00
Tom Wilkie
ac9c011475 Pipe plumbing
- Add store of pipes in the app
- Add pipe type, handling impedance mismatch, used in app and probe.
- App <-> Probe pipes have their own websockets.
- Add pipe websocket endpoint in app.
- Pipe IDs are strings, lose the request/response IDs, and give the json encoder lowercase field names.
- Add simple golang ws client, for testing.
- Pipe lifecycle plumbing.
- Ref count and timeout both ends of pipes in the app
- Deal with POST /api/pipe/:pid?_method=delete
- Add end-to-end unit test for pipes.
- Add test for timing out pipes.
- Update go-docker client to tomwilkie/go-dockerclient
- Backend work for non-raw ttys
- Close pipes when they close themselves in the probe
- Ensure all http connections are done before returning from client.Stop()
2015-12-10 12:51:17 +00:00
Tom Wilkie
ec9a3b135c Add a little test for collector.go 2015-12-08 17:59:24 +00:00
Paul Bellamy
a13042aafe [app] remove unused edge endpoint 2015-12-07 15:33:59 +00:00
Tom Wilkie
c317cff86e App: Rename package main->app, put main.go in prog/app 2015-12-07 14:53:28 +00:00
Paul Bellamy
269a11759f makefile should build app/static.go when needed
- Add non-containerised build for UI.
- Update README for new build steps.
2015-12-07 14:53:28 +00:00
Tom Wilkie
f1d225c836 Add hostname to /api 2015-12-04 15:33:12 +01:00
Tom Wilkie
99d72cbc2b Use common.SignalHandlerLoop from weave, and document debug options. 2015-12-04 10:01:00 +00:00
Paul Bellamy
68cff926be Add json support to app POST /api/report
This way you can save reports from /app/report, then use curl to post it
to the app later for testing.
2015-12-03 11:39:37 +00:00
Tom Wilkie
3262fa7a5e make static 2015-11-30 14:06:17 +00:00
Tom Wilkie
f5aafb7a05 Don't apply filters to node endpoints & update details panel logic such that node which dissappear from the topology (eg when they are stopped) don't dissapear from the details panel. 2015-11-30 09:33:41 +00:00
Paul Bellamy
7de420cdb1 make static 2015-11-20 11:32:56 +00:00
Tom Wilkie
310b2c8d07 make static 2015-11-16 10:44:30 +00:00
Tom Wilkie
95bca02e4d make static 2015-11-11 17:24:35 +00:00
Tom Wilkie
47ef1e02b3 Shortcut app -> UI ws push for certain reports. 2015-11-10 13:46:57 +00:00
Tom Wilkie
f7c75f9cd3 Make static 2015-11-06 18:25:41 +00:00
Tom Wilkie
39b66300a6 Merge pull request #598 from weaveworks/315-capabilities
Add controls form container start, stop, pause, etc
2015-11-06 18:22:05 +00:00
Tom Wilkie
8f957c4f13 Add docker lifecycle controls, containers in states other that running, and a filter for those containers.
Also add integration test for container controls.
2015-11-06 17:39:54 +00:00
Tom Wilkie
76d34330a9 Add Control plumbing. 2015-11-06 17:39:48 +00:00
Paul Bellamy
9877a2126a removing unused /api/origin/host/{id} route 2015-11-06 16:20:00 +00:00
Tom Wilkie
d5922e437f Fix stats for sub topologies. 2015-11-05 15:06:29 +00:00
Paul Bellamy
9ea156cfef Moving xfer.Collector into App (the only place its used) 2015-11-05 11:31:48 +00:00
Tom Wilkie
ad09d1effc make static 2015-11-03 18:17:47 +00:00
Tom Wilkie
641c2a1834 Merge remote-tracking branch 'origin/0.9' 2015-10-30 09:49:05 +00:00
Tom Wilkie
c6604a6c9b Don't keep stacking filters onto renderers; instead, ensure we return a fresh renderer each time. 2015-10-29 11:35:18 +00:00
Tom Wilkie
244e2f4b4a gofmt + build 2015-10-27 14:48:43 +00:00
Tom Wilkie
ec4425fb80 Use Node.Sets for Host Local Networks. 2015-10-27 14:35:07 +00:00
Tom Wilkie
8b03814cb7 Fixup failing tests due to fixture move. 2015-10-27 11:30:40 +00:00
Peter Bourgon
c8fbea0f15 Move fixture to its own package
We want to be able to import test from packages like probe/endpoint, in
order to use utility functions like poll. But that causes an import
cycle with the current layout. We got around this using dot-imports so
far, but it's ugly and unnecessary: fixture can be its own package.
2015-10-27 10:36:53 +00:00
Paul Bellamy
d7e26228bd Support wss for secure websockets when page was loaded over ssl 2015-10-19 17:42:11 +01:00
Tom Wilkie
c9d0418c9f Review feedback 2015-10-19 14:09:53 +00:00
Tom Wilkie
305e1f482c Refactor topology registry etc; merge a bunch of redundant types. 2015-10-19 10:33:39 +00:00
Tom Wilkie
258e2c153d Sort the structs returned by /api/topology 2015-10-19 10:33:35 +00:00
Tom Wilkie
de6742db11 Add containers by hostname view. 2015-10-09 10:52:12 +00:00
Paul Bellamy
be1d1d52d0 Basic Kubernetes integration
* Added helper for installing scope on gcloud
* Added topologies Pods and Pods-by-Service
* Uses k8s.io/kubernetes/pkg/client/cache for the client
* Filter kube-system nodes by default
* Only show the k8s topologies if we've received a non-empty k8s report
2015-10-06 12:55:51 +01:00
Peter Bourgon
81aa92d13b Show why some nodes are filtered in applications view 2015-10-01 15:57:04 +02:00
Peter Bourgon
e1ea2b234b make static 2015-09-30 05:14:51 -04:00
Peter Bourgon
7d52685b5f Merge pull request #503 from weaveworks/shutdown
Shutdown behavior
2015-09-29 12:02:23 +02:00
Peter Bourgon
36b743fe1f probe, app: reliable shutdown
- Restructure main funcs for clean defer-stack-unwinds
- Fix Docker container to handle signals properly
- Introduce runsvinit for container init process
- Integration test
2015-09-29 11:45:12 +02:00
Tom Wilkie
5c0555ae39 Report number of filtered nodes in topology stats.
Include filtered psuedo nodes in stats.
2015-09-29 08:51:38 +00:00
Peter Bourgon
822c09370e app: show unique ID in /api 2015-09-24 16:11:54 +02:00
Alfonso Acosta
bd58e91e18 Make static 2015-09-21 13:56:38 +00:00
Alfonso Acosta
96e825b8d2 make static 2015-09-16 12:23:58 +00:00
Peter Bourgon
4a4aea5663 make static 2015-09-16 12:30:21 +02:00
David
54d6ab3eaa Merge pull request #487 from weaveworks/sidebar
New sidebar in the bottom left
2015-09-16 12:15:58 +02:00
Peter Bourgon
70b57c3e4b make static 2015-09-15 18:47:22 +02:00
David Kaltschmidt
dfdf93c440 Changed topo option labels to show current state 2015-09-15 15:03:18 +02:00
Tom Wilkie
e303188169 Don't close the request body. 2015-09-14 04:11:04 +00:00