Documentation ¶
Index ¶
- Variables
- func GetVersion() string
- func RetrieveNetFromSubnetId(d *OscDriver, subnetId string) (string, error)
- type CloudError
- type OscApiData
- type OscDriver
- func (d *OscDriver) Create() error
- func (d *OscDriver) DriverName() string
- func (d *OscDriver) GetCreateFlags() []mcnflag.Flag
- func (d *OscDriver) GetIP() (string, error)
- func (d *OscDriver) GetSSHHostname() (string, error)
- func (d *OscDriver) GetSSHPort() (int, error)
- func (d *OscDriver) GetSSHUsername() string
- func (d *OscDriver) GetState() (state.State, error)
- func (d *OscDriver) GetURL() (string, error)
- func (d *OscDriver) Kill() error
- func (d *OscDriver) PreCreateCheck() error
- func (d *OscDriver) Remove() error
- func (d *OscDriver) Restart() error
- func (d *OscDriver) SetConfigFromFlags(flags drivers.DriverOptions) error
- func (d *OscDriver) Start() error
- func (d *OscDriver) Stop() error
Constants ¶
This section is empty.
Variables ¶
var ( // Throtlling ThrottlingErrors = []int{503, 429} )
Functions ¶
func GetVersion ¶
func GetVersion() string
Types ¶
type CloudError ¶ added in v0.2.0
type CloudError struct {
// contains filtered or unexported fields
}
func (CloudError) Error ¶ added in v0.2.0
func (e CloudError) Error() string
type OscApiData ¶
type OscApiData struct {
// contains filtered or unexported fields
}
type OscDriver ¶
type OscDriver struct { *drivers.BaseDriver // Stored Ak string Sk string Region string VmId string KeypairName string SecurityGroupId string PublicIpId string PublicCloud bool // contains filtered or unexported fields }
func (*OscDriver) DriverName ¶
DriverName returns the name of the driver
func (*OscDriver) GetCreateFlags ¶
GetCreateFlags returns the mcnflag.Flag slice representing the flags that can be set, their descriptions and defaults.
func (*OscDriver) GetIP ¶
GetIP returns an IP or hostname that this host is available at e.g. 1.2.3.4 or docker-host-d60b70a14d3a.cloudapp.net
func (*OscDriver) GetSSHHostname ¶
func (*OscDriver) GetSSHPort ¶
GetSSHPort returns port for use with ssh
func (*OscDriver) GetSSHUsername ¶
GetSSHUsername returns username for use with ssh
func (*OscDriver) GetURL ¶
GetURL returns a Docker compatible host URL for connecting to this host e.g. tcp://1.2.3.4:2376
func (*OscDriver) PreCreateCheck ¶
PreCreateCheck allows for pre-create operations to make sure a driver is ready for creation
func (*OscDriver) Restart ¶
Restart a host. This may just call Stop(); Start() if the provider does not have any special restart behaviour.
func (*OscDriver) SetConfigFromFlags ¶
func (d *OscDriver) SetConfigFromFlags(flags drivers.DriverOptions) error
SetConfigFromFlags configures the driver with the object that was returned by RegisterCreateFlags