detect

package
v1.33.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CgroupDriver added in v1.29.0

func CgroupDriver() string

CgroupDriver returns detected cgroup driver as configured on host os. If unable to detect, it will return constants.DefaultCgroupDriver instead. ref: https://kubernetes.io/docs/setup/production-environment/container-runtimes/#cgroup-drivers

func DockerInstalledViaSnap added in v1.20.0

func DockerInstalledViaSnap() bool

DockerInstalledViaSnap returns true if the Docker binary path includes "snap".

func EffectiveArch added in v1.22.0

func EffectiveArch() string

EffectiveArch return architecture to use in minikube VM/container may differ from host arch

func GithubActionRunner added in v1.25.0

func GithubActionRunner() bool

GithubActionRunner returns true if running inside a github action runner

func ISOCacheDir added in v1.25.2

func ISOCacheDir() string

ISOCacheDir returns the path in the minikube home directory to the virtual machine image cache for the current architecture

func ImageCacheDir added in v1.25.2

func ImageCacheDir() string

ImageCacheDir returns the path in the minikube home directory to the container image cache for the current architecture

func IsAmd64M1Emulation

func IsAmd64M1Emulation() bool

IsAmd64M1Emulation determines whether amd64 minikube binary is running on M1 mac in emulation mode

func IsCloudShell

func IsCloudShell() bool

IsCloudShell determines whether minikube is running inside CloudShell

func IsMicrosoftWSL

func IsMicrosoftWSL() bool

IsMicrosoftWSL will return true if process is running in WSL in windows checking for WSL env var based on this https://github.com/microsoft/WSL/issues/423#issuecomment-608237689 also based on https://github.com/microsoft/vscode/blob/90a39ba0d49d75e9a4d7e62a6121ad946ecebc58/resources/win32/bin/code.sh#L24

func IsOnGCE

func IsOnGCE() bool

IsOnGCE determines whether minikube is currently running on GCE.

func KICCacheDir added in v1.25.2

func KICCacheDir() string

KICCacheDir returns the path in the minikube home directory to the container node cache for the current architecture

func MacOS13Plus added in v1.29.0

func MacOS13Plus() bool

MacOS13Plus returns if the current machine is running macOS 13+

func MinikubeInstalledViaSnap added in v1.20.0

func MinikubeInstalledViaSnap() bool

MinikubeInstalledViaSnap returns true if the minikube binary path includes "snap".

func RuntimeArch added in v1.21.0

func RuntimeArch() string

RuntimeArch returns the runtime architecture

func RuntimeOS added in v1.21.0

func RuntimeOS() string

RuntimeOS returns the runtime operating system

func SocketVMNetClientPath added in v1.29.0

func SocketVMNetClientPath() string

SocketVMNetClientPath returns the path of socket_vmnet_client (QEMU driver only)

func SocketVMNetInstalled added in v1.28.0

func SocketVMNetInstalled() bool

SocketVMNetInstalled returns if socket_vmnet is installed

func SocketVMNetPath added in v1.29.0

func SocketVMNetPath() string

SocketVMNetPath returns the path of socket_vmnet (QEMU driver only)

Types

This section is empty.

Jump to

Keyboard shortcuts

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