Documentation ¶
Index ¶
- 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) GetImageID(image string) string
- func (d *Driver) GetPrivateIP(inst *ecs.InstanceAttributesType) string
- func (d *Driver) GetSSHHostname() (string, error)
- func (d *Driver) GetState() (state.State, error)
- func (d *Driver) GetURL() (string, error)
- func (d *Driver) Kill() 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
- type IpPermission
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver Id string AccessKey string SecretKey string Region common.Region ImageID string SSHPassword string SSHKeyPairName string SSHPrivateKeyPath string PublicKey []byte InstanceId string InstanceType string PrivateIPAddress string SecurityGroupId string SecurityGroupName string ReservationId string VpcId string VSwitchId string Zone string PrivateIPOnly bool InternetMaxBandwidthOut int InternetChargeType common.InternetChargeType RouteCIDR string SLBID string SLBIPAddress string Tags map[string]string DiskSize int DiskFS string DiskCategory ecs.DiskCategory Description string IoOptimized bool APIEndpoint string SystemDiskCategory ecs.DiskCategory SystemDiskSize int ResourceGroupId string // contains filtered or unexported fields }
func (*Driver) DriverName ¶
func (*Driver) GetCreateFlags ¶
func (*Driver) GetImageID ¶
func (*Driver) GetPrivateIP ¶
func (d *Driver) GetPrivateIP(inst *ecs.InstanceAttributesType) string
func (*Driver) GetSSHHostname ¶
func (*Driver) PreCreateCheck ¶
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
type IpPermission ¶
type IpPermission struct { IpProtocol ecs.IpProtocol FromPort int ToPort int IpRange string }
Click to show internal directories.
Click to hide internal directories.