Documentation ¶
Index ¶
- Constants
- Variables
- func ClusterFlagValue() string
- func DeleteProfiles(profiles []*config.Profile) []error
- func Execute()
- func GenerateBashCompletion(w io.Writer, cmd *cobra.Command) error
- func GenerateFishCompletion(w io.Writer, cmd *cobra.Command) error
- func GenerateZshCompletion(out io.Writer, cmd *cobra.Command) error
- func HandleDeletionErrors(errors []error)
- func KubectlCommand(version string, args ...string) (*exec.Cmd, error)
- type CacheListTemplate
- type DeletionError
- type DockerEnvConfig
- type DockerShellConfig
- type EnvNoProxyGetter
- type NoProxyGetter
- type PodmanEnvConfig
- type PodmanShellConfig
- type Status
Constants ¶
const ( // Fatal is a type of DeletionError Fatal typeOfError = 0 // MissingProfile is a type of DeletionError MissingProfile typeOfError = 1 // MissingCluster is a type of DeletionError MissingCluster typeOfError = 2 )
const ( // Configured means configured Configured = "Configured" // ~state.Saved // Misconfigured means misconfigured Misconfigured = "Misconfigured" // ~state.Error // Nonexistent means nonexistent Nonexistent = "Nonexistent" // ~state.None // Irrelevant is used for statuses that aren't meaningful for worker nodes Irrelevant = "Irrelevant" )
Variables ¶
var RootCmd = &cobra.Command{ Use: "minikube", Short: "minikube quickly sets up a local Kubernetes cluster", Long: `minikube provisions and manages local 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) } } logDir := pflag.Lookup("log_dir") if !logDir.Changed { if err := logDir.Value.Set(localpath.MakeMiniPath("logs")); err != nil { exit.WithError("logdir set failed", err) } } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
func ClusterFlagValue ¶ added in v1.9.0
func ClusterFlagValue() string
ClusterFlagValue returns the current cluster name based on flags
func DeleteProfiles ¶ added in v1.5.0
DeleteProfiles deletes one or more profiles
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 GenerateFishCompletion ¶ added in v1.10.0
GenerateFishCompletion generates the completion for the bash shell
func GenerateZshCompletion ¶ added in v0.24.0
GenerateZshCompletion generates the completion for the zsh shell
func HandleDeletionErrors ¶ added in v1.5.0
func HandleDeletionErrors(errors []error)
HandleDeletionErrors handles deletion errors from DeleteProfiles
Types ¶
type CacheListTemplate ¶ added in v0.25.0
type CacheListTemplate struct {
CacheImage string
}
CacheListTemplate represents the cache list template
type DeletionError ¶ added in v1.5.0
type DeletionError struct { Err error Errtype typeOfError }
DeletionError can be returned from DeleteProfiles
func (DeletionError) Error ¶ added in v1.5.0
func (error DeletionError) Error() string
type DockerEnvConfig ¶ added in v1.7.3
DockerEnvConfig encapsulates all external inputs into shell generation for Docker
type DockerShellConfig ¶ added in v1.7.3
type DockerShellConfig struct { shell.Config DockerCertPath string DockerHost string DockerTLSVerify string MinikubeDockerdProfile string NoProxyVar string NoProxyValue string }
DockerShellConfig represents the shell config for Docker
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 NoProxyGetter ¶ added in v0.17.0
NoProxyGetter gets the no_proxy variable
type PodmanEnvConfig ¶ added in v1.7.3
PodmanEnvConfig encapsulates all external inputs into shell generation for Podman
type PodmanShellConfig ¶ added in v1.7.3
PodmanShellConfig represents the shell config for Podman
Source Files ¶
- cache.go
- cache_list.go
- completion.go
- dashboard.go
- delete.go
- docker-env.go
- generate-docs.go
- ip.go
- kubectl.go
- logs.go
- mount.go
- node.go
- node_add.go
- node_delete.go
- node_list.go
- node_start.go
- node_stop.go
- options.go
- pause.go
- podman-env.go
- root.go
- service.go
- service_list.go
- ssh-key.go
- ssh.go
- start.go
- start_flags.go
- status.go
- stop.go
- tunnel.go
- unpause.go
- update-check.go
- update-context.go
- version.go