detect

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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