Skip to content

Commit 251f4b9

Browse files
feat: add Firecracker hypervisor support
1 parent 560f851 commit 251f4b9

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 37
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-57c5cb3d3dc57a03333475dc1817875a36eead6be9439c0203d1832c32b068d5.yml
3-
openapi_spec_hash: 14f7b09e6e010020f42981dddeb0b415
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-ec9459bfe289a85521771fc591586ab6938f3060a516c5a9b953c508fca285a5.yml
3+
openapi_spec_hash: 327106f17c1b6b057c8bc0c67f866a3c
44
config_hash: a1af5d178d489535e5daee07b8d45d07

instance.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ type Instance struct {
208208
HotplugSize string `json:"hotplug_size"`
209209
// Hypervisor running this instance
210210
//
211-
// Any of "cloud-hypervisor", "qemu", "vz".
211+
// Any of "cloud-hypervisor", "firecracker", "qemu", "vz".
212212
Hypervisor InstanceHypervisor `json:"hypervisor"`
213213
// User-defined key-value metadata
214214
Metadata map[string]string `json:"metadata"`
@@ -310,6 +310,7 @@ type InstanceHypervisor string
310310

311311
const (
312312
InstanceHypervisorCloudHypervisor InstanceHypervisor = "cloud-hypervisor"
313+
InstanceHypervisorFirecracker InstanceHypervisor = "firecracker"
313314
InstanceHypervisorQemu InstanceHypervisor = "qemu"
314315
InstanceHypervisorVz InstanceHypervisor = "vz"
315316
)
@@ -490,7 +491,7 @@ type InstanceNewParams struct {
490491
GPU InstanceNewParamsGPU `json:"gpu,omitzero"`
491492
// Hypervisor to use for this instance. Defaults to server configuration.
492493
//
493-
// Any of "cloud-hypervisor", "qemu", "vz".
494+
// Any of "cloud-hypervisor", "firecracker", "qemu", "vz".
494495
Hypervisor InstanceNewParamsHypervisor `json:"hypervisor,omitzero"`
495496
// User-defined key-value metadata for the instance
496497
Metadata map[string]string `json:"metadata,omitzero"`
@@ -529,6 +530,7 @@ type InstanceNewParamsHypervisor string
529530

530531
const (
531532
InstanceNewParamsHypervisorCloudHypervisor InstanceNewParamsHypervisor = "cloud-hypervisor"
533+
InstanceNewParamsHypervisorFirecracker InstanceNewParamsHypervisor = "firecracker"
532534
InstanceNewParamsHypervisorQemu InstanceNewParamsHypervisor = "qemu"
533535
InstanceNewParamsHypervisorVz InstanceNewParamsHypervisor = "vz"
534536
)

0 commit comments

Comments
 (0)