MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / connect

Method connect

crates/openshell-core/src/grpc_client.rs:724–728  ·  view source on GitHub ↗
(endpoint: &str)

Source from the content-addressed store, hash-verified

722
723impl CachedOpenShellClient {
724 pub async fn connect(endpoint: &str) -> Result<Self> {
725 debug!(endpoint = %endpoint, "Connecting openshell gRPC client for policy polling");
726 let client = connect(endpoint).await?;
727 Ok(Self { client })
728 }
729
730 /// Get a clone of the underlying tonic client for direct RPC calls.
731 pub fn raw_client(&self) -> OpenShellClient<AuthedChannel> {

Callers 5

build_oidc_channelFunction · 0.45
build_mtls_channelFunction · 0.45
callMethod · 0.45
build_channelFunction · 0.45
build_plain_channelFunction · 0.45

Calls 1

connectFunction · 0.85

Tested by

no test coverage detected