virtual

package
v0.0.0-...-caea6a0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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

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
	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