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

Function createVmFormState

vmm/ui/src/composables/useVmManager.ts:162–198  ·  view source on GitHub ↗
(preLaunchScript: string)

Source from the content-addressed store, hash-verified

160};
161
162function createVmFormState(preLaunchScript: string): VmFormState {
163 return {
164 name: '',
165 image: '',
166 dockerComposeFile: '',
167 initScript: '',
168 preLaunchScript,
169 vcpu: 1,
170 memory: 2048,
171 memoryValue: 2,
172 memoryUnit: 'GB',
173 swap_size: 0,
174 swapValue: 0,
175 swapUnit: 'GB',
176 disk_size: 20,
177 selectedGpus: [],
178 attachAllGpus: false,
179 ports: [],
180 encryptedEnvs: [],
181 storage_fs: '',
182 app_id: null,
183 key_provider: 'kms',
184 key_provider_id: '',
185 gateway_enabled: true,
186 public_logs: true,
187 public_sysinfo: true,
188 public_tcbinfo: true,
189 no_tee: false,
190 pin_numa: false,
191 hugepages: false,
192 net_mode: '',
193 user_config: '',
194 kms_urls: [],
195 gateway_urls: [],
196 stopped: false,
197 };
198}
199
200function createUpdateDialogState(): UpdateDialogState {
201 return {

Callers 1

useVmManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected