Add local KV store commands

This commit is contained in:
Eric Wendland 2026-05-16 21:52:35 +02:00
commit 1a0f1e7671
14 changed files with 395 additions and 13 deletions

View file

@ -1,6 +1,7 @@
use geth_auth::{AuthExplanation, AuthOp};
use geth_db::DbResource;
use geth_keychain::KeychainOp;
use geth_kv::{KvEntry, KvResource};
use geth_resource::ResourceDescriptor;
use geth_ssh_identity::{
SshCertApproval, SshCertRequest, SshCertificateRecord, SshRevocationEntry,
@ -98,6 +99,18 @@ pub enum ControlRequest {
DbStatus {
name: String,
},
KvCreate {
name: String,
},
KvSet {
name: String,
key: String,
value: String,
},
KvGet {
name: String,
key: String,
},
ModuleStub {
module: String,
command: String,
@ -183,6 +196,15 @@ pub enum ControlResponse {
DbStatus {
db: DbResource,
},
KvCreated {
kv: KvResource,
},
KvSet {
entry: KvEntry,
},
KvGet {
entry: Option<KvEntry>,
},
NotImplemented {
module: String,
command: String,