MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / get_info

Method get_info

vmm/src/main_service.rs:470–482  ·  view source on GitHub ↗
(self, request: Id)

Source from the content-addressed store, hash-verified

468 }
469
470 async fn get_info(self, request: Id) -> Result<GetInfoResponse> {
471 if let Some(vm) = self.app.vm_info(&request.id).await? {
472 Ok(GetInfoResponse {
473 found: true,
474 info: Some(vm),
475 })
476 } else {
477 Ok(GetInfoResponse {
478 found: false,
479 info: None,
480 })
481 }
482 }
483
484 #[tracing::instrument(skip(self, request), fields(id = request.id))]
485 async fn resize_vm(self, request: ResizeVmRequest) -> Result<()> {

Callers

nothing calls this directly

Calls 1

vm_infoMethod · 0.80

Tested by

no test coverage detected