Documentation ¶
Index ¶
- Constants
- func AllowsPreload(driverName string) bool
- func AutoPauseProxyEndpoint(cc *config.ClusterConfig, cp *config.Node, driverName string) (string, net.IP, int, error)
- func BareMetal(name string) bool
- func Choices(vm bool) []registry.DriverState
- func ControlPlaneEndpoint(cc *config.ClusterConfig, cp *config.Node, driverName string) (string, net.IP, int, error)
- func DisplaySupportedDrivers() string
- func FullName(name string) string
- func HasResourceLimits(name string) bool
- func IndexFromMachineName(machineName string) int
- func IsAlias(name, alias string) bool
- func IsDocker(name string) bool
- func IsDockerDesktop(name string) bool
- func IsHyperV(name string) bool
- func IsKIC(name string) bool
- func IsKVM(name string) bool
- func IsMock(name string) bool
- func IsNone(name string) bool
- func IsQEMU(name string) bool
- func IsSSH(name string) bool
- func IsVM(name string) bool
- func IsVMware(name string) bool
- func IsVirtualBox(name string) bool
- func MachineType(name string) string
- func NeedsPortForward(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" // SSH driver SSH = "ssh" // KVM2 driver KVM2 = "kvm2" // QEMU2 driver QEMU2 = "qemu2" // QEMU driver QEMU = "qemu" // VirtualBox driver VirtualBox = "virtualbox" // HyperKit driver HyperKit = "hyperkit" // VMware driver VMware = "vmware" // HyperV driver HyperV = "hyperv" // Parallels driver Parallels = "parallels" // VFKit driver VFKit = "vfkit" // AliasKVM is driver name alias for kvm2 AliasKVM = "kvm" // AliasSSH is driver name alias for ssh AliasSSH = "generic" // AliasNative is driver name alias for None driver AliasNative = "native" // AliasQEMU is the driver name alias for qemu2 AliasQEMU = "qemu" )
Variables ¶
This section is empty.
Functions ¶
func AllowsPreload ¶ added in v1.21.0
AllowsPreload returns if preload is allowed for the driver
func AutoPauseProxyEndpoint ¶ added in v1.18.0
func AutoPauseProxyEndpoint(cc *config.ClusterConfig, cp *config.Node, driverName string) (string, net.IP, int, error)
AutoPauseProxyEndpoint returns the endpoint for the auto-pause (reverse proxy to api-sever)
func Choices ¶
func Choices(vm bool) []registry.DriverState
Choices returns a list of drivers which are possible on this system
func ControlPlaneEndpoint ¶ added in v1.10.1
func ControlPlaneEndpoint(cc *config.ClusterConfig, cp *config.Node, driverName string) (string, net.IP, int, error)
ControlPlaneEndpoint 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 FullName ¶ added in v1.12.2
FullName will return the human-known and title formatted name for the driver based on platform
func HasResourceLimits ¶ added in v1.7.3
HasResourceLimits returns true if driver can set resource limits such as memory size or CPU count.
func IndexFromMachineName ¶ added in v1.14.0
IndexFromMachineName returns the order of the container based on it is name
func IsDockerDesktop ¶ added in v1.12.2
IsDockerDesktop checks if the driver is a Docker for Desktop (Docker on windows or MacOs) for linux and exotic archs, this will be false
func IsVirtualBox ¶ added in v1.30.1
IsVirtualBox checks if the driver is VirtualBox
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