config

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigCmd = &cobra.Command{
	Use:   "config SUBCOMMAND [flags]",
	Short: "Modify minishift config",
	Long: `config modifies minishift config files using subcommands like "minishift config set vm-driver kvm"
Configurable fields: ` + "\n\n" + configurableFields(),
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
}

Functions

func IsPositive

func IsPositive(name string, val string) error

func IsValidCIDR

func IsValidCIDR(name string, cidr string) error

func IsValidDiskSize

func IsValidDiskSize(name string, disksize string) error

func IsValidDriver

func IsValidDriver(string, driver string) error

func IsValidPath

func IsValidPath(name string, path string) error

func RequiresRestartMsg

func RequiresRestartMsg(string, string) error

func SetBool

func SetBool(m MinikubeConfig, name string, val string) error

func SetInt

func SetInt(m MinikubeConfig, name string, val string) error

func SetString

func SetString(m MinikubeConfig, name string, val string) error

func WriteConfig

func WriteConfig(m MinikubeConfig) error

Writes a minikube config to the JSON file

Types

type ConfigViewTemplate added in v0.9.0

type ConfigViewTemplate struct {
	ConfigKey   string
	ConfigValue interface{}
}

type MinikubeConfig

type MinikubeConfig map[string]interface{}

func ReadConfig

func ReadConfig() (MinikubeConfig, error)

ReadConfig reads in the JSON minishift config

type Setting

type Setting struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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