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

Function service_get

crates/openshell-cli/src/run.rs:4200–4218  ·  view source on GitHub ↗
(
    server: &str,
    sandbox: &str,
    service: &str,
    tls: &TlsOptions,
)

Source from the content-addressed store, hash-verified

4198}
4199
4200pub async fn service_get(
4201 server: &str,
4202 sandbox: &str,
4203 service: &str,
4204 tls: &TlsOptions,
4205) -> Result<()> {
4206 let mut client = grpc_client(server, tls).await?;
4207 let response = client
4208 .get_service(GetServiceRequest {
4209 sandbox: sandbox.to_string(),
4210 service: service.to_string(),
4211 })
4212 .await
4213 .map_err(|status| service_status_error("get service", "sandbox:read", status))?
4214 .into_inner();
4215
4216 print_service_endpoint_table(&[response], server);
4217 Ok(())
4218}
4219
4220pub async fn service_delete(
4221 server: &str,

Callers 1

mainFunction · 0.85

Calls 4

grpc_clientFunction · 0.85
service_status_errorFunction · 0.85
get_serviceMethod · 0.45

Tested by

no test coverage detected