Documentation ¶
Index ¶
- type NutanixDriver
- func (d *NutanixDriver) Create() error
- func (d *NutanixDriver) DriverName() string
- func (d *NutanixDriver) GetCreateFlags() []mcnflag.Flag
- func (d *NutanixDriver) GetSSHHostname() (string, error)
- func (d *NutanixDriver) GetState() (state.State, error)
- func (d *NutanixDriver) GetURL() (string, error)
- func (d *NutanixDriver) Kill() error
- func (d *NutanixDriver) Remove() error
- func (d *NutanixDriver) Restart() error
- func (d *NutanixDriver) SetConfigFromFlags(opts drivers.DriverOptions) error
- func (d *NutanixDriver) Start() error
- func (d *NutanixDriver) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NutanixDriver ¶
type NutanixDriver struct { *drivers.BaseDriver Endpoint string Username string Password string Port string Insecure bool Cluster string VMVCPUs int VMCores int VMCPUPassthrough bool VMMem int SSHPass string Subnet []string Image string ImageSize int VMId string SessionAuth bool ProxyURL string Categories []string StorageContainer string DiskSize int CloudInit string SerialPort bool Project string BootType string }
NutanixDriver driver structure
func NewDriver ¶
func NewDriver(hostname, storePath string) *NutanixDriver
NewDriver create new instance
func (*NutanixDriver) Create ¶
func (d *NutanixDriver) Create() error
Create a host using the driver's config
func (*NutanixDriver) DriverName ¶
func (d *NutanixDriver) DriverName() string
DriverName returns the name of the driver
func (*NutanixDriver) GetCreateFlags ¶
func (d *NutanixDriver) GetCreateFlags() []mcnflag.Flag
GetCreateFlags returns the mcnflag.Flag slice representing the flags that can be set, their descriptions and defaults.
func (*NutanixDriver) GetSSHHostname ¶
func (d *NutanixDriver) GetSSHHostname() (string, error)
GetSSHHostname returns hostname for use with ssh
func (*NutanixDriver) GetState ¶
func (d *NutanixDriver) GetState() (state.State, error)
GetState returns the state that the host is in (running, stopped, etc)
func (*NutanixDriver) GetURL ¶
func (d *NutanixDriver) GetURL() (string, error)
GetURL returns a Docker compatible host URL for connecting to this host
func (*NutanixDriver) Restart ¶
func (d *NutanixDriver) Restart() error
Restart a host. This may just call Stop(); Start() if the provider does not have any special restart behaviour.
func (*NutanixDriver) SetConfigFromFlags ¶
func (d *NutanixDriver) SetConfigFromFlags(opts drivers.DriverOptions) error
SetConfigFromFlags configures the driver with the object that was returned by RegisterCreateFlags