Documentation ¶
Index ¶
- Variables
- func NewDriver(machineName string, 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) GetSSHHostname() (string, error)
- func (d *Driver) GetSSHUsername() string
- func (d *Driver) GetState() (state.State, error)
- func (d *Driver) GetURL() (string, error)
- func (d *Driver) Kill() error
- func (d *Driver) PreCreateCheck() (err 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 ¶
This section is empty.
Variables ¶
View Source
var ( ErrDriverMissingEndPointOptionOV = errors.New("Missing option --oneview-ov-endpoint or environment ONEVIEW_OV_ENDPOINT") ErrDriverMissingEndPointOptionICSP = errors.New("Missing option --oneview-icsp-endpoint or environment ONEVIEW_ICSP_ENDPOINT") ErrDriverMissingTemplateOption = errors.New("Missing option --oneview-server-template or environment ONEVIEW_SERVER_TEMPLATE") ErrDriverMissingBuildPlanOption = errors.New("Missing option --oneview-os-plans or ONEVIEW_OS_PLANS") )
Error messages
Functions ¶
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver ClientICSP *icsp.ICSPClient ClientOV *ov.OVClient IloUser string IloPassword string IloPort int OSBuildPlans []string SSHUser string SSHPort int SSHPublicKey string ServerTemplate string PublicSlotID int PublicConnectionName string Profile ov.ServerProfile Hardware ov.ServerHardware Server icsp.Server }
Driver OneView driver structure
func (*Driver) DriverName ¶
DriverName - get the name of the driver
func (*Driver) GetCreateFlags ¶
GetCreateFlags registers the flags this driver adds to "docker hosts create"
func (*Driver) GetIP ¶
GetIP - get server host or ip address TODO: we need to get ip of server from icsp or ov?? currently the only way i can see to get this is with sudo ifconfig|grep inet
func (*Driver) GetSSHHostname ¶
GetSSHHostname - gets the hostname that docker-machine connects to
func (*Driver) GetSSHUsername ¶
GetSSHUsername - gets the ssh user that will be connected to
func (*Driver) PreCreateCheck ¶
PreCreateCheck - pre create check
func (*Driver) Remove ¶
Remove - remove the docker machine target
Should remove the ICSP provisioned plan and the Server Profile from OV
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
SetConfigFromFlags - gets the mcnflag configuration flags
Click to show internal directories.
Click to hide internal directories.