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

Function createUpdateDialogState

vmm/ui/src/composables/useVmManager.ts:200–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198}
199
200function createUpdateDialogState(): UpdateDialogState {
201 return {
202 show: false,
203 vm: null,
204 updateCompose: false,
205 dockerComposeFile: '',
206 initScript: '',
207 preLaunchScript: '',
208 encryptedEnvs: [],
209 resetSecrets: false,
210 vcpu: 0,
211 memory: 0,
212 memoryValue: 0,
213 memoryUnit: 'MB',
214 swap_size: 0,
215 swapValue: 0,
216 swapUnit: 'GB',
217 disk_size: 0,
218 image: '',
219 ports: [],
220 attachAllGpus: false,
221 selectedGpus: [],
222 updateGpuConfig: false,
223 user_config: '',
224 };
225}
226
227function createCloneConfigDialogState(): CloneConfigDialogState {
228 return {

Callers 1

useVmManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected