define

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InspectResponse

type InspectResponse struct {
	CPUs   uint   `json:"cpus"`
	Memory uint64 `json:"memory"`
}

InspectResponse is used when responding to a request for information about the virtual machine

type StateChange

type StateChange string
const (
	Resume   StateChange = "Resume"
	Pause    StateChange = "Pause"
	Stop     StateChange = "Stop"
	HardStop StateChange = "HardStop"
)

type VMState

type VMState struct {
	State string `json:"state"`
}

VMState can be used to describe the current state of a VM as well as used to request a state change

Jump to

Keyboard shortcuts

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