Documentation ¶
Index ¶
- Variables
- func CacheImagesInConfigFile() error
- func Execute()
- func GenerateBashCompletion(w io.Writer, cmd *cobra.Command) error
- func GenerateZshCompletion(out io.Writer, cmd *cobra.Command) error
- func GetClusterBootstrapper(api libmachine.API, bootstrapperName string) (bootstrapper.Bootstrapper, error)
- func GetDockerActive(host *host.Host) (bool, error)
- func LoadCachedImagesInConfigFile() error
- type CacheListTemplate
- type EnvNoProxyGetter
- type LibmachineShellDetector
- type NoProxyGetter
- type ShellConfig
- type ShellDetector
- type Status
Constants ¶
This section is empty.
Variables ¶
var RootCmd = &cobra.Command{ Use: "minikube", Short: "Minikube is a tool for managing local Kubernetes clusters.", Long: `Minikube is a CLI tool that provisions and manages single-node Kubernetes clusters optimized for development workflows.`, PersistentPreRun: func(cmd *cobra.Command, args []string) { for _, path := range dirs { if err := os.MkdirAll(path, 0777); err != nil { exit.WithError("Error creating minikube directory", err) } } if !glog.V(3) { log.SetOutWriter(ioutil.Discard) log.SetErrWriter(ioutil.Discard) } if glog.V(7) { log.SetDebug(true) } logDir := pflag.Lookup("log_dir") if !logDir.Changed { logDir.Value.Set(constants.MakeMiniPath("logs")) } if enableUpdateNotification { notify.MaybePrintUpdateTextFromGithub(os.Stderr) } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
func CacheImagesInConfigFile ¶ added in v1.0.1
func CacheImagesInConfigFile() error
CacheImagesInConfigFile caches the images currently in the config file (minikube start)
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GenerateBashCompletion ¶ added in v0.12.1
GenerateBashCompletion generates the completion for the bash shell
func GenerateZshCompletion ¶ added in v0.24.0
GenerateZshCompletion generates the completion for the zsh shell
func GetClusterBootstrapper ¶ added in v0.22.0
func GetClusterBootstrapper(api libmachine.API, bootstrapperName string) (bootstrapper.Bootstrapper, error)
GetClusterBootstrapper returns a new bootstrapper for the cluster
func GetDockerActive ¶ added in v0.31.0
GetDockerActive checks if Docker is active
func LoadCachedImagesInConfigFile ¶ added in v0.24.0
func LoadCachedImagesInConfigFile() error
LoadCachedImagesInConfigFile loads the images currently in the config file (minikube start)
Types ¶
type CacheListTemplate ¶ added in v0.25.0
type CacheListTemplate struct {
CacheImage string
}
CacheListTemplate represents the cache list template
type EnvNoProxyGetter ¶ added in v0.17.0
type EnvNoProxyGetter struct{}
EnvNoProxyGetter gets the no_proxy variable, using environment
func (EnvNoProxyGetter) GetNoProxyVar ¶ added in v0.17.0
func (EnvNoProxyGetter) GetNoProxyVar() (string, string)
GetNoProxyVar gets the no_proxy var
type LibmachineShellDetector ¶ added in v0.17.0
type LibmachineShellDetector struct{}
LibmachineShellDetector detects shell, using libmachine
type NoProxyGetter ¶ added in v0.17.0
NoProxyGetter gets the no_proxy variable
type ShellConfig ¶ added in v0.7.0
type ShellConfig struct { Prefix string Delimiter string Suffix string DockerCertPath string DockerHost string DockerTLSVerify string DockerAPIVersion string UsageHint string NoProxyVar string NoProxyValue string }
ShellConfig represents the shell config
type ShellDetector ¶ added in v0.17.0
ShellDetector detects shell