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

Method export_vault

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

Source from the content-addressed store, hash-verified

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