Add local document resource commands
This commit is contained in:
parent
527090fd4c
commit
ce260625d6
14 changed files with 277 additions and 14 deletions
|
|
@ -11,6 +11,7 @@ serde_json.workspace = true
|
|||
thiserror.workspace = true
|
||||
geth-auth = { path = "../geth-auth" }
|
||||
geth-db = { path = "../geth-db" }
|
||||
geth-document = { path = "../geth-document" }
|
||||
geth-keychain = { path = "../geth-keychain" }
|
||||
geth-kv = { path = "../geth-kv" }
|
||||
geth-resource = { path = "../geth-resource" }
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
use geth_auth::{AuthExplanation, AuthOp};
|
||||
use geth_db::DbResource;
|
||||
use geth_document::DocumentResource;
|
||||
use geth_keychain::KeychainOp;
|
||||
use geth_kv::{KvEntry, KvResource};
|
||||
use geth_resource::ResourceDescriptor;
|
||||
|
|
@ -111,6 +112,12 @@ pub enum ControlRequest {
|
|||
name: String,
|
||||
key: String,
|
||||
},
|
||||
DocumentCreate {
|
||||
name: String,
|
||||
},
|
||||
DocumentStatus {
|
||||
name: String,
|
||||
},
|
||||
ModuleStub {
|
||||
module: String,
|
||||
command: String,
|
||||
|
|
@ -205,6 +212,12 @@ pub enum ControlResponse {
|
|||
KvGet {
|
||||
entry: Option<KvEntry>,
|
||||
},
|
||||
DocumentCreated {
|
||||
document: DocumentResource,
|
||||
},
|
||||
DocumentStatus {
|
||||
document: DocumentResource,
|
||||
},
|
||||
NotImplemented {
|
||||
module: String,
|
||||
command: String,
|
||||
|
|
|
|||
Loading…
Reference in a new issue