Documentation ¶
Index ¶
- func GetGitCommitID() string
- func GetVersion() string
- type Driver
- func (d *Driver) Create() (err error)
- func (d *Driver) DriverName() string
- func (d *Driver) GetIP() (string, error)
- func (d *Driver) GetSSHHostname() (string, error)
- func (d *Driver) GetState() (st state.State, err error)
- func (d *Driver) GetURL() (string, error)
- func (d *Driver) Kill() (err error)
- func (d *Driver) PreCommandCheck() error
- func (d *Driver) Remove() error
- func (d *Driver) Restart() error
- func (d *Driver) Start() (err error)
- func (d *Driver) Stop() (err error)
- type PCIDevice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGitCommitID ¶ added in v1.3.0
func GetGitCommitID() string
GetGitCommitID returns the git commit id from which it is being built
func GetVersion ¶ added in v1.2.0
func GetVersion() string
GetVersion returns the current docker-machine-driver-kvm2 version
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver *pkgdrivers.CommonDriver // How much memory, in MB, to allocate to the VM Memory int // How many cpus to allocate to the VM CPU int // The name of the default network Network string // The name of the private network PrivateNetwork string // The size of the disk to be created for the VM, in MB DiskSize int // The path of the disk .img DiskPath string // A file or network URI to fetch the minikube ISO Boot2DockerURL string // The location of the iso to boot from ISO string // The randomly generated MAC Address // If empty, a random MAC will be generated. MAC string // The randomly generated MAC Address for the NIC attached to the private network // If empty, a random MAC will be generated. PrivateMAC string // Whether to passthrough GPU devices from the host to the VM. GPU bool // Whether to hide the KVM hypervisor signature from the guest Hidden bool // XML that needs to be added to passthrough GPU devices. DevicesXML string // QEMU Connection URI ConnectionURI string }
Driver is the machine driver for KVM
func (*Driver) DriverName ¶
DriverName returns the name of the driver
func (*Driver) GetSSHHostname ¶
GetSSHHostname returns hostname for use with ssh
func (*Driver) PreCommandCheck ¶
PreCommandCheck checks the connection before issuing a command
Click to show internal directories.
Click to hide internal directories.