Documentation ¶
Index ¶
- Constants
- func NewDriver(hostName, storePath string) drivers.Driver
- 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) GetSSHUsername() string
- func (d *Driver) GetState() (state.State, error)
- func (d *Driver) GetURL() (string, error)
- func (d *Driver) GoSleep(sec int)
- func (d *Driver) Kill() error
- func (d *Driver) PostInfoblox(url string, data []byte) 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
Constants ¶
View Source
const Version string = "v0.1.14"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver ID string APIURL string APIKey string SecretKey string IBuser string IBpassword string HTTPGETOnly bool JobTimeOut int64 UsePrivateIP bool UsePortForward bool PublicIP string PublicIPID string DisassociatePublicIP bool MacAddress string SSHKeyPair string SSHPrivateKeyBase64 string SSHKeyPath string SSHManage bool PrivateIP string CIDRList []string FirewallRuleIds []string Expunge bool Template string TemplateID string ServiceOffering string ServiceOfferingID string DeleteVolumes bool DiskOffering string DiskOfferingID string DiskSize int DiskRootSize int Network string NetworkID string NetworkCidr string Zone string ZoneID string NetworkType string UserDataFile string UserData string Project string ProjectID string TMTags string Tags []string DomainName string DisplayName string }
Driver is the new cloudstack driver
func (*Driver) DriverName ¶
DriverName returns the name of the driver as it is registered
func (*Driver) GetCreateFlags ¶
GetCreateFlags registers the flags this driver adds to "docker hosts create"
func (*Driver) GetMachineName ¶ added in v0.1.8
func (*Driver) GetSSHHostname ¶
GetSSHHostname sets hostname to the host ip
func (*Driver) GetSSHUsername ¶
GetSSHUsername gets the ssh user
func (*Driver) GetURL ¶
GetURL returns a Docker compatible host URL for connecting to this host e.g. tcp://1.2.3.4:2376
func (*Driver) PostInfoblox ¶ added in v0.1.9
func (*Driver) PreCreateCheck ¶
PreCreateCheck allows for pre-create operations to make sure a driver is ready for creation
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
SetConfigFromFlags configures the driver with the object that was returned by RegisterCreateFlags
Click to show internal directories.
Click to hide internal directories.