hyperkit

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	cfg config.Config,
	daemonRunner driver.DaemonRunner,
	ui driver.UI,
	cfdevdClient *client.Client,
) driver.Driver

func SafeKill

func SafeKill(pidfile, name string) error

Types

type Hyperkit

type Hyperkit struct {
	UI           driver.UI
	Config       config.Config
	DaemonRunner driver.DaemonRunner
	CFDevD       *client.Client
	SudoShell    *runner.Sudo
}

func (*Hyperkit) CheckRequirements

func (d *Hyperkit) CheckRequirements() error

func (*Hyperkit) IsRunning

func (d *Hyperkit) IsRunning() (bool, error)

func (*Hyperkit) Prestart

func (d *Hyperkit) Prestart() error

This pre-start hook was added to accommodate, albeit hastily, a request have any actions that require sudo privileges sooner since 'cf dev start' can take some time. For now, only the darwin architecture make use of it to since it is not expected to be ran with administrator privileges. https://github.com/cloudfoundry-incubator/cfdev/issues/41

func (*Hyperkit) Start

func (d *Hyperkit) Start(cpus int, memory int, efiPath string) error

func (*Hyperkit) Stop

func (d *Hyperkit) Stop() error

Jump to

Keyboard shortcuts

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