scriptlet

package
v0.0.0-...-288c4de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL