Documentation ¶
Index ¶
- Variables
- func MustBeRunning(d *Driver) error
- type Driver
- func (d *Driver) Create() error
- func (d *Driver) DriverName() string
- func (d *Driver) GetCreateFlags() []mcnflag.Flag
- func (d *Driver) GetHostIP() (string, error)
- func (d *Driver) GetIP() (string, error)
- func (d *Driver) GetSSHHostname() (string, error)
- func (d *Driver) GetSSHKeyPath() string
- func (d *Driver) GetSSHPort() (int, error)
- func (d *Driver) GetSSHUsername() string
- func (d *Driver) GetState() (state.State, error)
- func (d *Driver) GetURL() (string, error)
- func (d *Driver) Kill() error
- func (d *Driver) PreCreateCheck() (err error)
- func (d *Driver) Remove() error
- func (d *Driver) Restart() error
- func (d *Driver) SetConfigFromFlags(fl drivers.DriverOptions) error
- func (d *Driver) Start() error
- func (d *Driver) Stop() error
Constants ¶
This section is empty.
Variables ¶
var ErrHostIsNotRunning = errors.New("Host is not running")
ErrHostIsNotRunning is an error that shows that the VM is not Running
Functions ¶
func MustBeRunning ¶
MustBeRunning will return an error if the machine is not in a running state.
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver VMLabels map[string]string VMName string VMDescription string SSHKeyName string VMImageID string DiskSize string MemSize string NBCPUCores uint32 HarvesterHost string CACertBase64 string CertBase64 string KeyBase64 string Namespace string DockerPort int VM *v1.VirtualMachine }
Driver represents Harvester Docker Machine Driver.
func (*Driver) DriverName ¶
DriverName returns the name of the driver.
func (*Driver) GetCreateFlags ¶
GetCreateFlags returns list of create flags driver accepts.
func (*Driver) GetSSHHostname ¶
GetSSHHostname returns an IP address or hostname for the machine instance.
func (*Driver) GetSSHKeyPath ¶
GetSSHKeyPath return the SSH Key Path
func (*Driver) GetSSHPort ¶
GetSSHPort returns an IP address or hostname for the machine instance.
func (*Driver) GetSSHUsername ¶
GetSSHUsername returns an IP address or hostname for the machine instance.
func (*Driver) GetURL ¶
GetURL returns a socket address to connect to Docker engine of the machine instance.
func (*Driver) PreCreateCheck ¶
PreCreateCheck validates if driver values are valid to create the machine.
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(fl drivers.DriverOptions) error
SetConfigFromFlags initializes driver values from the command line values and checks if the arguments have values.