hypervisor

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, depsIsoPath string) (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
	DepsIso  string
	MemoryMB int
	CPUs     int
}

Jump to

Keyboard shortcuts

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