refactor: DockerData refactors

Use a croner in the docker_data, instead of in the ui thread, as this thread will be paused when in exec mode.

is_initilised is again done in docker_data, after stats have been calculated

use bollard from git, waiting for new release due to Docker changes
This commit is contained in:
Jack Wills
2023-11-15 16:12:18 +00:00
parent 6a4cf6490d
commit 650aa0fc91
3 changed files with 122 additions and 60 deletions
+3 -1
View File
@@ -13,7 +13,9 @@ categories = ["command-line-utilities"]
[dependencies]
anyhow = "1.0"
bollard = "0.15"
# bollard = "0.15"
bollard = { git = "https://www.github.com/fussybeaver/bollard.git", rev = "cef1cd5" }
cansi = "2.2"
clap = { version = "4.4", features = ["derive", "unicode", "color"] }
crossterm = "0.27"