diff options
author | Ava Hahn <a.hahn@f5.com> | 2024-05-01 17:08:56 -0700 |
---|---|---|
committer | avahahn <110854134+avahahn@users.noreply.github.com> | 2024-05-08 13:30:08 -0700 |
commit | f6989dd67965c7489f8c68ecd0e25f0358b5993f (patch) | |
tree | e0ac500e68661e2e31f3f1eace7b3f5ffe133443 /tools/unitctl/unit-client-rs/src/unit_client.rs | |
parent | 818d4ad76592c87a5c0c7bbd728636023c07daa0 (diff) | |
download | unit-f6989dd67965c7489f8c68ecd0e25f0358b5993f.tar.gz unit-f6989dd67965c7489f8c68ecd0e25f0358b5993f.tar.bz2 |
tools/unitctl: Add Docker deployment functionality
* add UnitdDockerError type
* write complete procedure to deploy unit via docker
* additional tweaks verifying it fails peacefully
* print important information in client
Signed-off-by: Ava Hahn <a.hahn@f5.com>
Diffstat (limited to 'tools/unitctl/unit-client-rs/src/unit_client.rs')
-rw-r--r-- | tools/unitctl/unit-client-rs/src/unit_client.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/unitctl/unit-client-rs/src/unit_client.rs b/tools/unitctl/unit-client-rs/src/unit_client.rs index 7456b106..f76004cd 100644 --- a/tools/unitctl/unit-client-rs/src/unit_client.rs +++ b/tools/unitctl/unit-client-rs/src/unit_client.rs @@ -66,6 +66,9 @@ custom_error! {pub UnitClientError executable_path: String, pid: u64 } = "{message} for [pid={pid}, executable_path={executable_path}]: {source}", + UnitdDockerError { + message: String + } = "Failed to communicate with docker daemon: {message}", } impl UnitClientError { |