drivers

package
v0.0.0-...-f36f896 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeviceMapPath

func GetDeviceMapPath(d *drivers.BaseDriver) string

func GetDiskPath

func GetDiskPath(d *drivers.BaseDriver) string

func GetGrubCfgPath

func GetGrubCfgPath(d *drivers.BaseDriver) string

func MakeDiskImage

func MakeDiskImage(d *drivers.BaseDriver, boot2dockerURL string, diskSize int) error

func Restart

func Restart(d drivers.Driver) error

Restart a host. This may just call Stop(); Start() if the provider does not have any special restart behaviour.

Types

type Bhyve

type Bhyve struct {
	Name          string
	Pid           int
	StateDir      string
	ISOImagePath  string
	Grub          bool
	DeviceMapPath string
	GrubCfgPath   string
	DiskPath      string
	// contains filtered or unexported fields
}

func NewBhyve

func NewBhyve(statedir string) (*Bhyve, error)

func (*Bhyve) Start

func (b *Bhyve) Start() (chan error, error)

type CommonDriver

type CommonDriver struct{}

func (*CommonDriver) GetCreateFlags

func (d *CommonDriver) GetCreateFlags() []mcnflag.Flag

Not implemented yet

func (*CommonDriver) SetConfigFromFlags

func (d *CommonDriver) SetConfigFromFlags(flags drivers.DriverOptions) error

Not implemented yet

Jump to

Keyboard shortcuts

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