Documentation
¶
Index ¶
- Constants
- func BareMetal(name string) bool
- func Choices(vm bool) []registry.DriverState
- func ControlPaneEndpoint(cc *config.ClusterConfig, cp *config.Node, driverName string) (string, net.IP, int, error)
- func DisplaySupportedDrivers() string
- func HasResourceLimits(name string) bool
- func InstallOrUpdate(name string, directory string, v semver.Version, interactive bool, ...) error
- func IsKIC(name string) bool
- func IsMock(name string) bool
- func IsVM(name string) bool
- func MachineName(cc config.ClusterConfig, n config.Node) string
- func MachineType(name string) string
- func NeedsPortForward(name string) bool
- func NeedsRoot(name string) bool
- func NeedsShutdown(name string) bool
- func SetLibvirtURI(v string)
- func Status(name string) registry.DriverState
- func Suggest(options []registry.DriverState) (registry.DriverState, []registry.DriverState, []registry.DriverState)
- func Supported(name string) bool
- func SupportedDrivers() []string
- func VBoxManagePath() string
- type FlagHints
Constants ¶
const ( // Podman is Kubernetes in container using podman driver Podman = "podman" // 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 Choices ¶
func Choices(vm bool) []registry.DriverState
Choices returns a list of drivers which are possible on this system
func ControlPaneEndpoint ¶ added in v1.9.1
func ControlPaneEndpoint(cc *config.ClusterConfig, cp *config.Node, driverName string) (string, net.IP, int, error)
ControlPaneEndpoint returns the location where callers can reach this cluster
func DisplaySupportedDrivers ¶ added in v1.7.0
func DisplaySupportedDrivers() string
DisplaySupportedDrivers returns a string with a list of supported drivers
func HasResourceLimits ¶ added in v1.7.3
HasResourceLimits returns true if driver can set resource limits such as memory size or CPU count.
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 MachineName ¶ added in v1.8.0
func MachineName(cc config.ClusterConfig, n config.Node) string
MachineName returns the name of the machine, as seen by the hypervisor given the cluster and node names
func MachineType ¶ added in v1.8.0
MachineType returns appropriate machine name for the driver
func NeedsPortForward ¶ added in v1.9.1
NeedsPortForward returns true if driver is unable provide direct IP connectivity
func NeedsShutdown ¶ added in v1.10.0
NeedsShutdown returns true if driver needs manual shutdown command before stopping. Hyper-V requires special care to avoid ACPI and file locking issues KIC also needs shutdown to avoid container getting stuck, https://github.com/kubernetes/minikube/issues/7657
func SetLibvirtURI ¶ added in v1.7.0
func SetLibvirtURI(v string)
SetLibvirtURI sets the URI to perform libvirt health checks against
func Suggest ¶ added in v1.7.1
func Suggest(options []registry.DriverState) (registry.DriverState, []registry.DriverState, []registry.DriverState)
Suggest returns a suggested driver, alternate drivers, and rejected drivers
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