Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configurator ¶ added in v1.5.0
type Configurator func(config.MachineConfig) interface{}
Configurator emits a struct to be marshalled into JSON for Machine Driver
type DriverDef ¶
type DriverDef struct { // Name of the machine driver. It has to be unique. Name string // Config is a function that emits a configured driver struct Config Configurator // Init is a function that initializes a machine driver, if built-in to the minikube binary Init Loader // Status returns the installation status of the driver Status StatusChecker // Priority returns the prioritization for selecting a driver by default. Priority Priority }
DriverDef defines how to initialize and load a machine driver
type DriverState ¶ added in v1.5.0
DriverState is metadata relating to a driver and status
func Installed ¶ added in v1.5.0
func Installed() []DriverState
Installed returns a list of installed drivers in the global registry
func (DriverState) String ¶ added in v1.5.0
func (d DriverState) String() string
type Priority ¶ added in v1.5.0
type Priority int
Priority is how we determine what driver to default to
type Registry ¶
type Registry interface { // Register a driver in registry Register(driver DriverDef) error // Driver returns the registered driver from a given name Driver(name string) (DriverDef, error) // List List() []DriverDef }
Registry contains all the supported driver definitions on the host
type StatusChecker ¶ added in v1.5.0
type StatusChecker func() State
StatusChecker checks if a driver is available, offering a
Click to show internal directories.
Click to hide internal directories.