virtual

package
v0.0.0-...-eeb3e7f Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Running   = State(0)
	Stopped   = State(1)
	Suspended = State(2)
	Error     = State(3)
)

Variables

This section is empty.

Functions

func GetAvailablePort

func GetAvailablePort() uint

Types

type Instance

type Instance interface {
	Create(context.Context) error
	Start(context.Context) error
	Run(context.Context) error
	Suspend(context.Context) error
	Stop() error
	Info() InstanceInfo
	io.Closer
}

type InstanceInfo

type InstanceInfo struct {
	Image string
	Type  string
	Id    string
	State State
}

type ResourceResizer

type ResourceResizer interface {
	SetRAM(uint) error
	SetCPU(uint) error
}

type State

type State int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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