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

Function getKeyProvider

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

Source from the content-addressed store, hash-verified

1079 }
1080
1081 function getKeyProvider(vm: VmListItem): KeyProviderKind {
1082 if (vm.appCompose?.key_provider) {
1083 return vm.appCompose?.key_provider;
1084 }
1085 if (vm.appCompose?.kms_enabled) {
1086 return 'kms';
1087 }
1088 if (vm.appCompose?.local_key_provider_enabled) {
1089 return 'local';
1090 }
1091 return 'none';
1092 }
1093
1094 async function showCloneConfig(vm: VmListItem) {
1095 const theVm = await ensureVmDetails(vm);

Callers 3

kmsEnabledFunction · 0.85
showCloneConfigFunction · 0.85
getVmFeaturesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected