driver

package
v1.7.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Docker is Kubernetes in container using docker driver
	Docker = "docker"
	// Mock driver
	Mock = "mock"
	// None driver
	None = "none"
	// KVM2 driver
	KVM2 = "kvm2"
	// VirtualBox driver
	VirtualBox = "virtualbox"
	// HyperKit driver
	HyperKit = "hyperkit"
	// VMware driver
	VMware = "vmware"
	// VMwareFusion driver
	VMwareFusion = "vmwarefusion"
	// HyperV driver
	HyperV = "hyperv"
	// Parallels driver
	Parallels = "parallels"
)

Variables

This section is empty.

Functions

func BareMetal

func BareMetal(name string) bool

BareMetal returns if this driver is unisolated

func Choices

func Choices() []registry.DriverState

Choices returns a list of drivers which are possible on this system

func Choose

func Choose(requested string, options []registry.DriverState) (registry.DriverState, []registry.DriverState)

Choose returns a suggested driver from a set of options

func DisplaySupportedDrivers added in v1.7.0

func DisplaySupportedDrivers() string

DisplaySupportedDrivers returns a string with a list of supported drivers

func InstallOrUpdate

func InstallOrUpdate(name string, directory string, v semver.Version, interactive bool, autoUpdate bool) error

InstallOrUpdate downloads driver if it is not present, or updates it if there's a newer version

func IsKIC added in v1.7.0

func IsKIC(name string) bool

IsKIC checks if the driver is a kubernetes in continer

func SetLibvirtURI added in v1.7.0

func SetLibvirtURI(v string)

SetLibvirtURI sets the URI to perform libvirt health checks against

func Status

func Status(name string) registry.State

Status returns the status of a driver

func Supported

func Supported(name string) bool

Supported returns if the driver is supported on this host.

func SupportedDrivers

func SupportedDrivers() []string

SupportedDrivers returns a list of supported drivers

func VBoxManagePath

func VBoxManagePath() string

VBoxManagePath returns the path to the VBoxManage command

Types

type FlagHints

type FlagHints struct {
	ExtraOptions     []string
	CacheImages      bool
	ContainerRuntime string
	Bootstrapper     string
}

FlagHints are hints for what default options should be used for this driver

func FlagDefaults

func FlagDefaults(name string) FlagHints

FlagDefaults returns suggested defaults based on a driver

Jump to

Keyboard shortcuts

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