Bradley Cicenas
222a7d77b2
Squashed commit of the following:
...
commit 9968c504a5
Author: Florian Vahl <florian@flova.de>
Date: Tue Feb 1 00:37:31 2022 +0100
Fix formating (Spaces -> Tabs)
commit 6b8840647e
Author: Florian <florian@flova.de>
Date: Tue Feb 1 00:27:44 2022 +0100
Use better duration formating
commit 815dc6ec84
Author: Florian <florian@flova.de>
Date: Tue Feb 1 00:27:04 2022 +0100
Fix date formating in 'created' col
commit 05b17798f8
Author: Florian <florian@flova.de>
Date: Tue Feb 1 00:26:08 2022 +0100
Add fix from #275 for uptime of running containers
2022-03-30 14:13:10 -04:00
Bradley Cicenas
be23d85eda
Merge remote-tracking branch 'stokito/browser'
2021-10-24 10:40:43 -04:00
Bradley Cicenas
9f8f38f9d7
Merge remote-tracking branch 'remotes/stokito/events_filter'
2021-06-11 14:04:53 -04:00
Bradley Cicenas
a603c1b58c
Merge remote-tracking branch 'remotes/stokito/uptime'
2021-06-10 22:01:45 -04:00
Sergey Ponomarev
77c9001ed1
optimize health_status event handling
2021-02-04 09:37:44 +02:00
Sergey Ponomarev
d98ce102b1
Filter events
2021-02-04 09:22:57 +02:00
Sergey Ponomarev
dd92e85d45
Open in browser
...
Most containers expose some http port. We can open it in browser.
For simplicity we can just open first container's published port.
We'll determine the ip:port on container creation and store to meta "Web Port".
To open browser on any platform was added a new dependency github.com/pkg/browser which is very small
2020-12-12 21:21:53 +02:00
Sergey Ponomarev
f2c28c5fb0
#243 Fix bug: show ENV variables
...
Previously only last env variable is shown
2020-12-09 23:06:14 +02:00
Sergey Ponomarev
6c662d91fb
docker.go shortName() use TrimPrefix()
2020-11-25 19:17:07 +02:00
Sergey Ponomarev
65e9c6dff6
docker connector: refresh() delete container only if it not found but keep on failures
...
If inspect() call was failed due to connection problems then container will be removed anyway as like ot wasn't found.
This is probably almost never happens in real life but still some missed logic bug
2020-11-20 19:44:09 +02:00
Sergey Ponomarev
df0d8b7892
#187 "created" action is handled separately in watchEvents()
2020-11-20 19:26:02 +02:00
Sergey Ponomarev
ba126e6e7c
events handling: early skipping of extremely frequent exec_* events
...
The exec_create, exec_start, exec_die and other events are generated by health checks
2020-11-18 23:04:29 +02:00
Sergey Ponomarev
009201ed0c
actionToStatus: catch more generic die instead of kill
2020-11-18 23:04:29 +02:00
Sergey Ponomarev
4c280cee56
Improve docker events handling: separate channel for status updates
...
Instead of calling a heavy inspect api call we can easily changing status just by knowing an action.
Let's do this in a separate channel decouple UI update from basic event loop.
2020-11-17 22:00:03 +02:00
Sergey Ponomarev
b65e970a83
Improve docker events handling
...
Firstly check health updates because it will be a lot of them especially when a container is unstable.
Clearly handle create event to create a container even if it wasn't started.
Instead of die event handle more precise events like oom, kill and only then trigger refresh.
Lookup the state from a map.
2020-11-17 21:50:25 +02:00
Sergey Ponomarev
957cabba2d
docker.go: watchEvents() optimize actionName extraction
...
Split(e.Action, ":") creates and array but we can avoid this.
2020-11-17 12:06:34 +02:00
Sergey Ponomarev
5aacdc3772
docker.go: logging of events
...
Add log.IsEnabledFor(logging.DEBUG) guard to avoid unnecessary memory allocations. Debug level is usually disabled.
Inline "destroy"
2020-11-17 11:42:45 +02:00
Sergey Ponomarev
c984b270db
#135 Add uptime column
2020-10-26 16:32:51 +02:00
Bradley Cicenas
98fcfe8b6f
refactor connectors for retry logic, add error view
2019-05-22 16:58:55 +00:00
CodeLingo Bot
b401e7b17e
Fix function comments based on best practices from Effective Go
...
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
2019-03-07 02:33:29 +00:00
bartfokker
8a0bd3cf8a
remove unneeded cast
2018-10-25 22:22:28 +02:00
bartfokker
4d48245d7d
improve boolean logic
2018-10-25 22:12:17 +02:00
Serhii Bilonozhko
9a185b2388
env-var
2018-10-05 17:35:22 -04:00
Jean-Philippe
a72d43526f
add IP of networks in single view mode
2018-09-06 21:01:16 +02:00
Bradley Cicenas
ac1ce18143
refactor enabled connectors
2018-01-29 12:47:10 +00:00
Bradley Cicenas
a826859202
gofmt
2017-11-22 09:27:38 -05:00
Peter Reisinger
436266b1a4
added container menu closes #28
2017-11-20 11:09:36 +00:00
Bradley Cicenas
a1ebf3f90e
remove duplicate inspect, trigger refresh on "health_status" events
2017-08-28 08:29:59 +09:00
Alexandr Kozlenkov
626d50d3e9
Added health row to Info Single mode.
...
Change color status logic.
Highlight health status for Name column:
- starting - yellow
- healthy - green
- unhealthy - magenta
reformat
Fixed misprint
Removed unused colors of state widget.
Moved changes to another branch
Removed unused colors of state widget.
Remove swarm changes from master
Remove swarm changes from master
Remove swarm changes from master
2017-08-28 07:55:43 +09:00
Bradley Cicenas
58d9e4e194
reverse host and container port in metadata
2017-06-18 17:17:56 -03:00
Bradley Cicenas
617b1b2863
omit runc connector from darwin build
2017-06-14 10:11:40 -03:00
Bradley Cicenas
1be452d7c0
refactor collectors into subpackage
2017-06-12 11:12:03 -03:00
Bradley Cicenas
a48a9031cc
move container sort to struct method
2017-06-12 10:40:52 -03:00
Bradley Cicenas
e71b6cacce
prevent unlock until container sort complete
2017-06-10 11:09:21 -03:00
Bradley Cicenas
d372043a17
add --connector switch, validation
2017-06-09 14:35:29 -03:00
Bradley Cicenas
b009a260a4
initial runc connector implementation
2017-06-08 15:33:34 -03:00
Bradley Cicenas
44379cd9fd
rename connectors
2017-06-08 12:01:08 -03:00