Documentation ¶
Index ¶
- Constants
- Variables
- func IsPositive(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(_ string, isoURL string) error
- func RequiresRestartMsg(string, string) error
- func SetBool(m MinishiftConfig, name string, val string) error
- func SetInt(m MinishiftConfig, name string, val string) error
- func SetString(m MinishiftConfig, name string, val string) error
- func WriteConfig(m MinishiftConfig) error
- type ConfigViewTemplate
- type MinishiftConfig
- type Setting
Constants ¶
View Source
const (
DefaultConfigViewFormat = "- {{.ConfigKey | printf \"%-21s\"}}: {{.ConfigValue}}\n"
)
Variables ¶
View Source
var ConfigCmd = &cobra.Command{ Use: "config SUBCOMMAND [flags]", Short: "Modifies Minishift configuration properties.", Long: `Modifies Minishift configuration properties. Some of the configuration properties are equivalent to the options that you set when you run the minishift start command. Configurable properties (enter as SUBCOMMAND): ` + "\n\n" + configurableFields(), Run: func(cmd *cobra.Command, args []string) { cmd.Help() }, }
Functions ¶
func IsPositive ¶
func IsValidCIDR ¶
func IsValidDiskSize ¶
func IsValidDriver ¶
func IsValidPath ¶
func IsValidUrl ¶
func RequiresRestartMsg ¶
func WriteConfig ¶
func WriteConfig(m MinishiftConfig) error
Writes a minikube config to the JSON file
Types ¶
type ConfigViewTemplate ¶
type ConfigViewTemplate struct { ConfigKey string ConfigValue interface{} }
type MinishiftConfig ¶
type MinishiftConfig map[string]interface{}
func ReadConfig ¶
func ReadConfig() (MinishiftConfig, error)
ReadConfig reads in the JSON minishift config
Source Files ¶
Click to show internal directories.
Click to hide internal directories.