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

Method link_vault_entities

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

Source from the content-addressed store, hash-verified

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