MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / modifyInstance

Function modifyInstance

cmd/modify_test.go:18–29  ·  view source on GitHub ↗
(mode, gpuType, numGPUs, cpuCores string, storage int)

Source from the content-addressed store, hash-verified

16}
17
18func modifyInstance(mode, gpuType, numGPUs, cpuCores string, storage int) *api.Instance {
19 return &api.Instance{
20 ID: "test-1",
21 UUID: "uuid-1",
22 Name: "test-instance",
23 Status: "RUNNING",
24 GPUType: gpuType,
25 NumGPUs: numGPUs,
26 CPUCores: cpuCores,
27 Storage: storage,
28 }
29}
30
31// modifyCmd creates a fresh cobra command with modify flags for testing.
32func newModifyCmd() *cobra.Command {

Calls

no outgoing calls

Tested by

no test coverage detected