Documentation ¶
Overview ¶
This file was modified from the original work, https://github.com/xenserver/docker-machine-driver-xenserver
Index ¶
- Constants
- type Driver
- func (d *Driver) Create() error
- func (d *Driver) DriverName() string
- func (d *Driver) GetCreateFlags() []mcnflag.Flag
- func (d *Driver) GetIP() (string, error)
- func (d *Driver) GetMachineName() string
- func (d *Driver) GetSSHHostname() (string, error)
- 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) GetXenAPIClient() (*XenAPIClient, error)
- func (d *Driver) Kill() error
- func (d *Driver) PreCreateCheck() error
- func (d *Driver) Remove() error
- func (d *Driver) Restart() error
- func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
- func (d *Driver) Start() error
- func (d *Driver) Stop() error
- type XenAPIClient
- func (c *XenAPIClient) GetUniqueHostByNameLabel(name_label string) (host *xsclient.Host, err error)
- func (c *XenAPIClient) GetUniqueNetworkByNameLabel(name_label string) (network *xsclient.Network, err error)
- func (c *XenAPIClient) GetUniqueSRByNameLabel(name_label string) (sr *xsclient.SR, err error)
- func (c *XenAPIClient) GetUniqueVMByNameLabel(name_label string) (vm *xsclient.VM, err error)
Constants ¶
View Source
const ( B2D_USER = "docker" B2D_PASS = "tcuser" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver Server string Username string Password string Boot2DockerURL string CPU uint Memory uint DiskSize uint SR string Network string Host string ISO string TAR string UploadTimeout uint WaitTimeout uint CaCertPath string PrivateKeyPath string CoreosConfigDrive bool // contains filtered or unexported fields }
func (*Driver) DriverName ¶
func (*Driver) GetCreateFlags ¶
GetCreateFlags registers the flags this driver adds to "docker hosts create"
func (*Driver) GetMachineName ¶
func (*Driver) GetSSHHostname ¶
func (*Driver) GetSSHPort ¶
func (*Driver) GetSSHUsername ¶
func (*Driver) GetXenAPIClient ¶
func (d *Driver) GetXenAPIClient() (*XenAPIClient, error)
func (*Driver) PreCreateCheck ¶
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
type XenAPIClient ¶
type XenAPIClient struct {
xsclient.XenAPIClient
}
func NewXenAPIClient ¶
func NewXenAPIClient(host, username, password string) (c XenAPIClient)
func (*XenAPIClient) GetUniqueHostByNameLabel ¶
func (c *XenAPIClient) GetUniqueHostByNameLabel(name_label string) (host *xsclient.Host, err error)
Get Unique Host By NameLabel
func (*XenAPIClient) GetUniqueNetworkByNameLabel ¶
func (c *XenAPIClient) GetUniqueNetworkByNameLabel(name_label string) (network *xsclient.Network, err error)
Get Unique Network By NameLabel
func (*XenAPIClient) GetUniqueSRByNameLabel ¶
func (c *XenAPIClient) GetUniqueSRByNameLabel(name_label string) (sr *xsclient.SR, err error)
Get Unique SR By NameLabel
func (*XenAPIClient) GetUniqueVMByNameLabel ¶
func (c *XenAPIClient) GetUniqueVMByNameLabel(name_label string) (vm *xsclient.VM, err error)
Get Unique VM By NameLabel
Click to show internal directories.
Click to hide internal directories.