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

Method link_vault_entities

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

Source from the content-addressed store, hash-verified

956 }
957
958 pub fn link_vault_entities(
959 &self,
960 request: pb::LinkVaultEntitiesRequest,
961 ) -> CliResult<pb::LinkVaultEntitiesResponse> {
962 self.call(move |backend| async move {
963 match backend {
964 Backend::Local(state) => services_agent::VaultImpl { state }
965 .link_vault_entities(Request::new(request))
966 .await
967 .map(|response| response.into_inner()),
968 Backend::Reactor(channel) => {
969 let mut vault = pb::vault_service_client::VaultServiceClient::new(channel);
970 vault
971 .link_vault_entities(request)
972 .await
973 .map(|response| response.into_inner())
974 }
975 }
976 })
977 }
978
979 pub fn init_vault(&self, request: pb::InitVaultRequest) -> CliResult<pb::InitVaultResponse> {
980 self.call(move |backend| async move {

Callers 1

intent_linkFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected