driver

package
v0.0.0-...-2d6f4b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

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) Kill

func (d *NutanixDriver) Kill() error

Kill stops a host forcefully

func (*NutanixDriver) Remove

func (d *NutanixDriver) Remove() error

Remove a 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

func (*NutanixDriver) Start

func (d *NutanixDriver) Start() error

Start a host

func (*NutanixDriver) Stop

func (d *NutanixDriver) Stop() error

Stop a host gracefully

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL