hypervisor

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const LinuxKitLabel = "org.cloudfoundry.cfdev.linuxkit"

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonRunner

type DaemonRunner interface {
	AddDaemon(daemon.DaemonSpec) error
	RemoveDaemon(string) error
	Start(string) error
	Stop(string) error
	IsRunning(string) (bool, error)
}

type HyperV

type HyperV struct {
	Config     config.Config
	Powershell runner.Powershell
}

func (*HyperV) CreateVM

func (h *HyperV) CreateVM(vm VM) error

func (*HyperV) Destroy

func (h *HyperV) Destroy(vmName string) error

func (*HyperV) IsRunning

func (h *HyperV) IsRunning(vmName string) (bool, error)

func (*HyperV) Start

func (h *HyperV) Start(vmName string) error

func (*HyperV) Stop

func (h *HyperV) Stop(vmName string) error

type LinuxKit

type LinuxKit struct {
	Config       config.Config
	DaemonRunner DaemonRunner
}

func (*LinuxKit) CreateVM

func (l *LinuxKit) CreateVM(vm VM) error

func (*LinuxKit) DaemonSpec

func (l *LinuxKit) DaemonSpec(cpus, mem int) (daemon.DaemonSpec, error)

func (*LinuxKit) Destroy

func (l *LinuxKit) Destroy(vmName string) error

func (*LinuxKit) IsRunning

func (l *LinuxKit) IsRunning(vmName string) (bool, error)

func (*LinuxKit) Start

func (l *LinuxKit) Start(vmName string) error

func (*LinuxKit) Stop

func (l *LinuxKit) Stop(vmName string) error

func (*LinuxKit) Watch

func (l *LinuxKit) Watch(exit chan string)

type UI

type UI interface {
	Say(message string, args ...interface{})
	Writer() io.Writer
}

type VM

type VM struct {
	Name     string
	MemoryMB int
	CPUs     int
}

Jump to

Keyboard shortcuts

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