vm

package
v0.0.0-...-baf8ae7 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const HeartbeatDeadline = 5 * time.Minute

Variables

View Source
var (
	FullCapacityError       = errors.New("no slots available to allocate VM")
	ReservationExpiredError = errors.New("vm reservation has already expired")
)

Functions

This section is empty.

Types

type Id

type Id = string

type Info

type Info struct {
	Id
	NodeId
	Region
}

type NodeCapacityInfo

type NodeCapacityInfo struct {
	NodeInfo
	Capacity float64
}

type NodeId

type NodeId = string

type NodeInfo

type NodeInfo struct {
	Id
	Region
}

type Region

type Region = string
const (
	RegionUnspecified Region = "unspecified"
)

type Request

type Request struct {
	Id     Id
	Region Region
}

type Reservation

type Reservation interface {
	Info() Info
	Confirm(ctx context.Context) error
	Cancel(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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