Documentation ¶
Index ¶
Constants ¶
View Source
const InstancePlacementReasonEvacuation = "evacuation"
InstancePlacementReasonEvacuation is when an existing instance is temporarily migrated because a cluster member is being evacuated.
View Source
const InstancePlacementReasonNew = "new"
InstancePlacementReasonNew is when a new instance request is received.
View Source
const InstancePlacementReasonRelocation = "relocation"
InstancePlacementReasonRelocation is when an existing instance is temporarily migrated because a cluster member is down.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstancePlacement ¶
type InstancePlacement struct { api.InstancesPost `yaml:",inline"` Reason string `json:"reason"` Project string `json:"project"` }
InstancePlacement represents the instance placement request.
API extension: instances_placement_scriptlet.
type InstanceResources ¶
type InstanceResources struct { CPUCores uint64 `json:"cpu_cores"` MemorySize uint64 `json:"memory_size"` RootDiskSize uint64 `json:"root_disk_size"` }
InstanceResources represents the required resources for an instance.
API extension: instances_placement_scriptlet.
Click to show internal directories.
Click to hide internal directories.