Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDriverNameExist is the error returned when trying to register a driver // which already exists in registry ErrDriverNameExist = errors.New("registry: duplicated driver name") // ErrDriverNotFound is the error returned when driver of a given name does // not exist in registry ErrDriverNotFound = errors.New("registry: driver not found") )
Functions ¶
Types ¶
type ConfigFactory ¶
type ConfigFactory func(config.MachineConfig) interface{}
ConfigFactory is a function that creates a driver config from MachineConfig
type DriverDef ¶
type DriverDef struct { // Name of the machine driver. It has to be unique. Name string // BuiltIn indicates if the driver is builtin minikube binary, or the driver is // triggerred through RPC. Builtin bool // ConfigCreator generate a raw driver object by minikube's machine config. ConfigCreator ConfigFactory // DriverCreator is the factory method that creates a machine driver instance. DriverCreator DriverFactory }
DriverDef defines a machine driver metadata. It tells minikube how to initialize and load drivers.
func ListDrivers ¶
func ListDrivers() []DriverDef
type DriverFactory ¶
DriverFactory is a function that load a byte stream and create a driver
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
Click to show internal directories.
Click to hide internal directories.