Versions in this module Expand all Collapse all v0 v0.0.5 Mar 16, 2020 v0.0.4 Mar 16, 2020 Changes in this version type AliProvider + func (a *AliProvider) CreateNetwork(r Request) (*Response, error) + func (a *AliProvider) QueryFlavor(flavor string, zone string, charge string, strategy string) string + type Flavor struct + Image string + Region string + VMType string + Zone string type Interface + CreateNetwork func(request Request) (*Response, error) + QueryFlavor func(flavor string, zone string, charge string, strategy string) string + type Region interface + QueryFlavor func(region string, zone string, vmType string) (Flavor, error) type TencentProvider + func (t *TencentProvider) CreateNetwork(request Request) (*Response, error) + func (t *TencentProvider) QueryFlavor(flavor, zone, charge, strategy string) string v0.0.3 Dec 5, 2019 v0.0.1 Nov 29, 2019 Changes in this version + const ALI + const TENCENT + var CloudConfig Config + var CloudRequest Request + func NewRegion(r string) region + type AliProvider struct + func (a *AliProvider) Create(r Request) (*Response, error) + func (a *AliProvider) Delete(...string) error + func (a *AliProvider) InstanceInfo(id string) (*VM, error) + func (a *AliProvider) List(r Request) (*Response, error) + func (a *AliProvider) VPC(r Request) (string, error) + type Config struct + AccessKey string + AccessSecret string + Provider string + Region string + type Disk struct + Name string + Size string + type Interface interface + Create func(request Request) (*Response, error) + Delete func(...string) error + func NewProvider(config Config) Interface + type Request struct + Disks []Disk + ExternalArgs map[string]string + FIP bool + Flavor string + Image string + KeyPair string + NamePrefix string + Num int + Passwd string + SecuretyGroupID string + SwitchID string + VPCID string + ZoneID string + type Response struct + SecuretyGroupID string + SwitchID string + VMs []VM + VPCID string + type TencentProvider struct + func (t *TencentProvider) Create(request Request) (*Response, error) + func (t *TencentProvider) Delete(...string) error + type VM struct + CPU int + CreationTime string + FIP string + ID string + IP string + Memory int + Name string