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

Function getVmFeatures

vmm/ui/src/composables/useVmManager.ts:1461–1476  ·  view source on GitHub ↗
(vm: VmListItem)

Source from the content-addressed store, hash-verified

1459 }
1460
1461 function getVmFeatures(vm: VmListItem) {
1462 const features = [];
1463
1464 const kp = getKeyProvider(vm);
1465 if (kp && kp != 'none') features.push(kp);
1466
1467 // Check Gateway/TProxy
1468 if (vm.appCompose?.gateway_enabled) features.push("gateway");
1469
1470 // Check other features from appCompose
1471 if (vm.appCompose?.public_logs) features.push("logs");
1472 if (vm.appCompose?.public_sysinfo) features.push("sysinfo");
1473 if (vm.appCompose?.public_tcbinfo) features.push("tcbinfo");
1474
1475 return features.length > 0 ? features.join(', ') : 'None';
1476 }
1477
1478 // ── Image Registry ─────────────────────────────────────────────
1479 const showImageRegistry = ref(false);

Callers

nothing calls this directly

Calls 1

getKeyProviderFunction · 0.85

Tested by

no test coverage detected