diff options
author | Alex Auvolat <alex@adnab.me> | 2022-05-11 11:40:26 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-05-11 11:40:26 +0200 |
commit | 393b76ecba66ff11b80bf404691704568f2d1794 (patch) | |
tree | 66aa5010cb6391f52360396481b759e4187400e1 /src/api/admin/api_server.rs | |
parent | 5c00c9fb46305b021b5fc45d7ae7b1e13b72030c (diff) | |
download | garage-393b76ecba66ff11b80bf404691704568f2d1794.tar.gz garage-393b76ecba66ff11b80bf404691704568f2d1794.zip |
Implement CreateKey, DeleteKey and rudimentary UpdateKey
Diffstat (limited to 'src/api/admin/api_server.rs')
-rw-r--r-- | src/api/admin/api_server.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/admin/api_server.rs b/src/api/admin/api_server.rs index e44443ff..952f6a73 100644 --- a/src/api/admin/api_server.rs +++ b/src/api/admin/api_server.rs @@ -136,10 +136,15 @@ impl ApiHandler for AdminApiServer { Endpoint::GetKeyInfo { id, search } => { handle_get_key_info(&self.garage, id, search).await } + Endpoint::CreateKey => handle_create_key(&self.garage, req).await, + Endpoint::UpdateKey { id } => handle_update_key(&self.garage, id, req).await, + Endpoint::DeleteKey { id } => handle_delete_key(&self.garage, id).await, + /* _ => Err(Error::NotImplemented(format!( "Admin endpoint {} not implemented yet", endpoint.name() ))), + */ } } } |