diff options
author | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-30 16:12:16 +0100 |
---|---|---|
committer | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-30 16:12:16 +0100 |
commit | f8c6a8373d630311a18e9af011724181be68e5e1 (patch) | |
tree | 80a937f88be9339442f9d5fc499cd831b7d6b980 /src/garage/cli_v2/mod.rs | |
parent | 076ce04fe53123c5046f356e2b164a8093be2dfe (diff) | |
download | garage-f8c6a8373d630311a18e9af011724181be68e5e1.tar.gz garage-f8c6a8373d630311a18e9af011724181be68e5e1.zip |
convert cli key operations to admin rpc
Diffstat (limited to 'src/garage/cli_v2/mod.rs')
-rw-r--r-- | src/garage/cli_v2/mod.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/garage/cli_v2/mod.rs b/src/garage/cli_v2/mod.rs index 24ff6f72..e6d2d8c6 100644 --- a/src/garage/cli_v2/mod.rs +++ b/src/garage/cli_v2/mod.rs @@ -2,6 +2,7 @@ pub mod util; pub mod bucket; pub mod cluster; +pub mod key; pub mod layout; use std::collections::{HashMap, HashSet}; @@ -37,15 +38,9 @@ impl Cli { } Command::Layout(layout_opt) => self.layout_command_dispatch(layout_opt).await, Command::Bucket(bo) => self.cmd_bucket(bo).await, + Command::Key(ko) => self.cmd_key(ko).await, // TODO - Command::Key(ko) => cli_v1::cmd_admin( - &self.admin_rpc_endpoint, - self.rpc_host, - AdminRpc::KeyOperation(ko), - ) - .await - .ok_or_message("xoxo"), Command::Repair(ro) => cli_v1::cmd_admin( &self.admin_rpc_endpoint, self.rpc_host, |