oneview

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

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

func NewDriver

func NewDriver(machineName string, storePath string) drivers.Driver

NewDriver - create a OneView object driver

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

func (d *Driver) Create() error

Create - create server for docker

func (*Driver) DriverName

func (d *Driver) DriverName() string

DriverName - get the name of the driver

func (*Driver) GetCreateFlags

func (d *Driver) GetCreateFlags() []mcnflag.Flag

GetCreateFlags registers the flags this driver adds to "docker hosts create"

func (*Driver) GetIP

func (d *Driver) GetIP() (string, error)

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

func (d *Driver) GetSSHHostname() (string, error)

GetSSHHostname - gets the hostname that docker-machine connects to

func (*Driver) GetSSHUsername

func (d *Driver) GetSSHUsername() string

GetSSHUsername - gets the ssh user that will be connected to

func (*Driver) GetState

func (d *Driver) GetState() (state.State, error)

GetState - get the running state of the target machine

func (*Driver) GetURL

func (d *Driver) GetURL() (string, error)

GetURL - get docker url

func (*Driver) Kill

func (d *Driver) Kill() error

Kill - kill the docker machine

func (*Driver) PreCreateCheck

func (d *Driver) PreCreateCheck() (err error)

PreCreateCheck - pre create check

func (*Driver) Remove

func (d *Driver) Remove() error

Remove - remove the docker machine target

Should remove the ICSP provisioned plan and the Server Profile from OV

func (*Driver) Restart

func (d *Driver) Restart() error

Restart - restart the target machine

func (*Driver) SetConfigFromFlags

func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error

SetConfigFromFlags - gets the mcnflag configuration flags

func (*Driver) Start

func (d *Driver) Start() error

Start - start the docker machine target

func (*Driver) Stop

func (d *Driver) Stop() error

Stop - stop the docker machine target

Jump to

Keyboard shortcuts

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