Documentation ¶
Index ¶
- type Driver
- func (d *Driver) Authenticate() error
- 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) GetSSHPort() (int, 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) 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 ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver Cloud string `json:"cloud,omitempty"` AuthURL string `json:"auth_url,omitempty"` CACert string `json:"ca_cert,omitempty"` ValidateCert bool `json:"validate_cert"` DomainID string `json:"domain_id,omitempty"` DomainName string `json:"domain_name,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` ProjectName string `json:"project_name,omitempty"` ProjectID string `json:"project_id,omitempty"` Region string `json:"region,omitempty"` AccessKey string `json:"access_key,omitempty"` SecretKey string `json:"secret_key,omitempty"` AvailabilityZone string `json:"-"` EndpointType string `json:"endpoint_type,omitempty"` InstanceID string `json:"instance_id"` FlavorName string `json:"-"` FlavorID string `json:"-"` ImageName string `json:"-"` KeyPairName managedSting `json:"key_pair"` VpcName string `json:"-"` VpcID managedSting `json:"vpc_id"` SubnetName string `json:"-"` SubnetID managedSting `json:"subnet_id"` PrivateKeyFile string `json:"private_key"` SecurityGroups []string `json:"-"` SecurityGroupIDs []string `json:"-"` ServerGroup string `json:"-"` ServerGroupID string `json:"-"` ManagedSecurityGroup string `json:"-"` ManagedSecurityGroupID string `json:"managed_security_group,omitempty"` ElasticIP managedSting `json:"eip"` Token string `json:"token,omitempty"` UserDataFile string `json:"-"` UserData []byte `json:"-"` Tags []string `json:"-"` IPVersion int `json:"-"` RootVolumeOpts *services.DiskOpts `json:"-"` // contains filtered or unexported fields }
Driver for docker-machine
func (*Driver) GetCreateFlags ¶
GetCreateFlags - DMD flags
func (*Driver) GetSSHHostname ¶
GetSSHHostname - get ssh hostname
func (*Driver) GetSSHUsername ¶
GetSSHUsername - get ssh username
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
SetConfigFromFlags loads driver configuration from given flags
Click to show internal directories.
Click to hide internal directories.