Add local DB resource registration

This commit is contained in:
Eric Wendland 2026-05-16 21:13:33 +02:00
commit 4ec50d7473
14 changed files with 313 additions and 8 deletions

View file

@ -10,6 +10,7 @@ serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
geth-auth = { path = "../geth-auth" }
geth-db = { path = "../geth-db" }
geth-keychain = { path = "../geth-keychain" }
geth-resource = { path = "../geth-resource" }
geth-ssh-identity = { path = "../geth-ssh-identity" }

View file

@ -1,4 +1,5 @@
use geth_auth::{AuthExplanation, AuthOp};
use geth_db::DbResource;
use geth_keychain::KeychainOp;
use geth_resource::ResourceDescriptor;
use geth_ssh_identity::{
@ -90,6 +91,13 @@ pub enum ControlRequest {
SshRevocationExport {
out: PathBuf,
},
DbAdd {
name: String,
path: PathBuf,
},
DbStatus {
name: String,
},
ModuleStub {
module: String,
command: String,
@ -169,6 +177,12 @@ pub enum ControlResponse {
out: PathBuf,
count: usize,
},
DbAdded {
db: DbResource,
},
DbStatus {
db: DbResource,
},
NotImplemented {
module: String,
command: String,