MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / export_vault

Method export_vault

atomic-cli/src/service/mod.rs:999–1018  ·  view source on GitHub ↗
(
        &self,
        request: pb::ExportVaultRequest,
    )

Source from the content-addressed store, hash-verified

997 }
998
999 pub fn export_vault(
1000 &self,
1001 request: pb::ExportVaultRequest,
1002 ) -> CliResult<pb::ExportVaultResponse> {
1003 self.call(move |backend| async move {
1004 match backend {
1005 Backend::Local(state) => services_agent::VaultImpl { state }
1006 .export_vault(Request::new(request))
1007 .await
1008 .map(|response| response.into_inner()),
1009 Backend::Reactor(channel) => {
1010 let mut vault = pb::vault_service_client::VaultServiceClient::new(channel);
1011 vault
1012 .export_vault(request)
1013 .await
1014 .map(|response| response.into_inner())
1015 }
1016 }
1017 })
1018 }
1019
1020 pub fn sync_vault(&self, request: pb::SyncVaultRequest) -> CliResult<pb::SyncVaultResponse> {
1021 self.call(move |backend| async move {

Callers 1

vault_materializeFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected