Documentation
¶
Index ¶
- Constants
- Variables
- func AddToConfigMap(name string, images []string) error
- func AskForPasswordValue(s string) string
- func AskForStaticValue(s string) string
- func AskForStaticValueOptional(s string) string
- func AskForYesNoConfirmation(s string, posResponses, negResponses []string) bool
- func DeleteFromConfigMap(name string, images []string) error
- func EnableOrDisableAddon(name string, val string) error
- func EnableOrDisableDefaultStorageClass(name, val string) error
- func IsPositive(name string, val string) error
- func IsValidAddon(name string, val string) error
- func IsValidCIDR(name string, cidr string) error
- func IsValidDiskSize(name string, disksize string) error
- func IsValidDriver(string, driver string) error
- func IsValidPath(name string, path string) error
- func IsValidURL(name string, location string) error
- func RequiresRestartMsg(string, string) error
- func Set(name string, value string) error
- func SetBool(m config.MinikubeConfig, name string, val string) error
- func SetConfigMap(m config.MinikubeConfig, name string, val string) error
- func SetInt(m config.MinikubeConfig, name string, val string) error
- func SetMap(m config.MinikubeConfig, name string, val map[string]interface{}) error
- func SetString(m config.MinikubeConfig, name string, val string) error
- func WriteConfig(m config.MinikubeConfig) error
- type AddonListTemplate
- type ConfigViewTemplate
- type Setting
Constants ¶
View Source
const Bootstrapper = "bootstrapper"
Variables ¶
View Source
var AddonsCmd = &cobra.Command{ Use: "addons SUBCOMMAND [flags]", Short: "Modify minikube's kubernetes addons", Long: `addons modifies minikube addons files using subcommands like "minikube addons enable heapster"`, Run: func(cmd *cobra.Command, args []string) { cmd.Help() }, }
View Source
var ConfigCmd = &cobra.Command{ Use: "config SUBCOMMAND [flags]", Short: "Modify minikube config", Long: `config modifies minikube config files using subcommands like "minikube config set vm-driver kvm" Configurable fields: ` + "\n\n" + configurableFields(), Run: func(cmd *cobra.Command, args []string) { cmd.Help() }, }
View Source
var ProfileCmd = &cobra.Command{ Use: "profile MINIKUBE_PROFILE_NAME. You can return to the default minikube profile by running `minikube profile default`", Short: "Profile sets the current minikube profile", Long: "profile sets the current minikube profile. This is used to run and manage multiple minikube instance. You can return to the default minikube profile by running `minikube profile default`", Run: func(cmd *cobra.Command, args []string) { if len(args) != 1 { fmt.Fprintln(os.Stderr, "usage: minikube profile MINIKUBE_PROFILE_NAME") os.Exit(1) } profile := args[0] if profile == "default" { profile = "minikube" } err := Set(pkgConfig.MachineProfile, profile) if err != nil { fmt.Fprintln(os.Stdout, err) } else { fmt.Fprintln(os.Stdout, fmt.Sprintf("minikube profile was successfully set to %s", profile)) } }, }
Functions ¶
func AddToConfigMap ¶ added in v0.24.0
AddToConfigMap adds entries to a map in the config file
func AskForPasswordValue ¶ added in v0.21.0
func AskForStaticValue ¶ added in v0.17.0
AskForStaticValue asks for a single value to enter
func AskForStaticValueOptional ¶ added in v0.22.0
AskForStaticValueOptional asks for a optional single value to enter, can just skip enter
func AskForYesNoConfirmation ¶ added in v0.17.0
AskForYesNoConfirmation asks the user for confirmation. A user must type in "yes" or "no" and then press enter. It has fuzzy matching, so "y", "Y", "yes", "YES", and "Yes" all count as confirmations. If the input is not recognized, it will ask again. The function does not return until it gets a valid response from the user.
func DeleteFromConfigMap ¶ added in v0.24.0
DeleteFromConfigMap deletes entries from a map in the config file
func EnableOrDisableAddon ¶ added in v0.12.0
func EnableOrDisableDefaultStorageClass ¶ added in v0.18.0
func IsPositive ¶
func IsValidAddon ¶ added in v0.12.0
func IsValidCIDR ¶
func IsValidDiskSize ¶
func IsValidDriver ¶
func IsValidPath ¶
func IsValidURL ¶ added in v0.14.0
func RequiresRestartMsg ¶
func SetConfigMap ¶ added in v0.24.0
func SetConfigMap(m config.MinikubeConfig, name string, val string) error
func SetMap ¶ added in v0.24.0
func SetMap(m config.MinikubeConfig, name string, val map[string]interface{}) error
func WriteConfig ¶
func WriteConfig(m config.MinikubeConfig) error
WriteConfig writes a minikube config to the JSON file
Types ¶
type AddonListTemplate ¶ added in v0.12.0
type ConfigViewTemplate ¶ added in v0.12.0
type ConfigViewTemplate struct { ConfigKey string ConfigValue interface{} }
Click to show internal directories.
Click to hide internal directories.