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

Method list_images

vmm/src/main_service.rs:357–371  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

355 }
356
357 async fn list_images(self) -> Result<ImageListResponse> {
358 Ok(ImageListResponse {
359 images: self
360 .app
361 .list_images()?
362 .into_iter()
363 .map(|(name, info)| RpcImageInfo {
364 name,
365 description: serde_json::to_string(&info).unwrap_or_default(),
366 version: info.version,
367 is_dev: info.is_dev,
368 })
369 .collect(),
370 })
371 }
372
373 async fn upgrade_app(self, request: UpdateVmRequest) -> Result<Id> {
374 self.update_vm(request).await

Callers 1

list_registry_imagesMethod · 0.45

Calls 1

into_iterMethod · 0.80

Tested by

no test coverage detected