Documentation
¶
Index ¶
- Constants
- type AlibabaCloud
- func (p *AlibabaCloud) AddEgressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error
- func (p *AlibabaCloud) AddIngressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error
- func (p *AlibabaCloud) BatchCreate(m cloud.Params, num int) (instanceIds []string, err error)
- func (p *AlibabaCloud) BatchDelete(ids []string, regionId string) (err error)
- func (p *AlibabaCloud) CreateSecurityGroup(req cloud.CreateSecurityGroupRequest) (cloud.CreateSecurityGroupResponse, error)
- func (p *AlibabaCloud) CreateSwitch(req cloud.CreateSwitchRequest) (cloud.CreateSwitchResponse, error)
- func (p *AlibabaCloud) CreateVPC(req cloud.CreateVpcRequest) (cloud.CreateVpcResponse, error)
- func (p *AlibabaCloud) DescribeAvailableResource(req cloud.DescribeAvailableResourceRequest) (cloud.DescribeAvailableResourceResponse, error)
- func (p *AlibabaCloud) DescribeGroupRules(req cloud.DescribeGroupRulesRequest) (cloud.DescribeGroupRulesResponse, error)
- func (p *AlibabaCloud) DescribeImages(req cloud.DescribeImagesRequest) (cloud.DescribeImagesResponse, error)
- func (p *AlibabaCloud) DescribeInstanceTypes(req cloud.DescribeInstanceTypesRequest) (cloud.DescribeInstanceTypesResponse, error)
- func (p *AlibabaCloud) DescribeSecurityGroups(req cloud.DescribeSecurityGroupsRequest) (cloud.DescribeSecurityGroupsResponse, error)
- func (p *AlibabaCloud) DescribeSwitches(req cloud.DescribeSwitchesRequest) (cloud.DescribeSwitchesResponse, error)
- func (p *AlibabaCloud) DescribeVpcs(req cloud.DescribeVpcsRequest) (cloud.DescribeVpcsResponse, error)
- func (p *AlibabaCloud) GetInstances(ids []string) (instances []cloud.Instance, err error)
- func (p *AlibabaCloud) GetInstancesByCluster(regionId, clusterName string) (instances []cloud.Instance, err error)
- func (p *AlibabaCloud) GetInstancesByTags(region string, tags []cloud.Tag) (instances []cloud.Instance, err error)
- func (p *AlibabaCloud) GetOrders(req cloud.GetOrdersRequest) (cloud.GetOrdersResponse, error)
- func (p *AlibabaCloud) GetRegions() (cloud.GetRegionsResponse, error)
- func (p *AlibabaCloud) GetSwitch(req cloud.GetSwitchRequest) (cloud.GetSwitchResponse, error)
- func (p *AlibabaCloud) GetVPC(req cloud.GetVpcRequest) (cloud.GetVpcResponse, error)
- func (p *AlibabaCloud) GetZones(req cloud.GetZonesRequest) (cloud.GetZonesResponse, error)
- func (*AlibabaCloud) ProviderType() string
- func (p *AlibabaCloud) StartInstances(ids []string) error
- func (p *AlibabaCloud) StopInstances(ids []string) error
Constants ¶
View Source
const ( Instancetype = "InstanceType" AcceptLanguage = "zh-CN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlibabaCloud ¶
type AlibabaCloud struct {
// contains filtered or unexported fields
}
func New ¶
func New(AK, SK, region string) (*AlibabaCloud, error)
func (*AlibabaCloud) AddEgressSecurityGroupRule ¶
func (p *AlibabaCloud) AddEgressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error
func (*AlibabaCloud) AddIngressSecurityGroupRule ¶
func (p *AlibabaCloud) AddIngressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error
func (*AlibabaCloud) BatchCreate ¶
BatchCreate the maximum of 'num' is 100
func (*AlibabaCloud) BatchDelete ¶
func (p *AlibabaCloud) BatchDelete(ids []string, regionId string) (err error)
func (*AlibabaCloud) CreateSecurityGroup ¶
func (p *AlibabaCloud) CreateSecurityGroup(req cloud.CreateSecurityGroupRequest) (cloud.CreateSecurityGroupResponse, error)
func (*AlibabaCloud) CreateSwitch ¶
func (p *AlibabaCloud) CreateSwitch(req cloud.CreateSwitchRequest) (cloud.CreateSwitchResponse, error)
func (*AlibabaCloud) CreateVPC ¶
func (p *AlibabaCloud) CreateVPC(req cloud.CreateVpcRequest) (cloud.CreateVpcResponse, error)
func (*AlibabaCloud) DescribeAvailableResource ¶
func (p *AlibabaCloud) DescribeAvailableResource(req cloud.DescribeAvailableResourceRequest) (cloud.DescribeAvailableResourceResponse, error)
func (*AlibabaCloud) DescribeGroupRules ¶
func (p *AlibabaCloud) DescribeGroupRules(req cloud.DescribeGroupRulesRequest) (cloud.DescribeGroupRulesResponse, error)
func (*AlibabaCloud) DescribeImages ¶
func (p *AlibabaCloud) DescribeImages(req cloud.DescribeImagesRequest) (cloud.DescribeImagesResponse, error)
func (*AlibabaCloud) DescribeInstanceTypes ¶
func (p *AlibabaCloud) DescribeInstanceTypes(req cloud.DescribeInstanceTypesRequest) (cloud.DescribeInstanceTypesResponse, error)
DescribeInstanceTypes Up to 10 at once
func (*AlibabaCloud) DescribeSecurityGroups ¶
func (p *AlibabaCloud) DescribeSecurityGroups(req cloud.DescribeSecurityGroupsRequest) (cloud.DescribeSecurityGroupsResponse, error)
func (*AlibabaCloud) DescribeSwitches ¶
func (p *AlibabaCloud) DescribeSwitches(req cloud.DescribeSwitchesRequest) (cloud.DescribeSwitchesResponse, error)
func (*AlibabaCloud) DescribeVpcs ¶
func (p *AlibabaCloud) DescribeVpcs(req cloud.DescribeVpcsRequest) (cloud.DescribeVpcsResponse, error)
func (*AlibabaCloud) GetInstances ¶
func (p *AlibabaCloud) GetInstances(ids []string) (instances []cloud.Instance, err error)
func (*AlibabaCloud) GetInstancesByCluster ¶
func (p *AlibabaCloud) GetInstancesByCluster(regionId, clusterName string) (instances []cloud.Instance, err error)
func (*AlibabaCloud) GetInstancesByTags ¶
func (*AlibabaCloud) GetOrders ¶
func (p *AlibabaCloud) GetOrders(req cloud.GetOrdersRequest) (cloud.GetOrdersResponse, error)
func (*AlibabaCloud) GetRegions ¶
func (p *AlibabaCloud) GetRegions() (cloud.GetRegionsResponse, error)
func (*AlibabaCloud) GetSwitch ¶
func (p *AlibabaCloud) GetSwitch(req cloud.GetSwitchRequest) (cloud.GetSwitchResponse, error)
func (*AlibabaCloud) GetVPC ¶
func (p *AlibabaCloud) GetVPC(req cloud.GetVpcRequest) (cloud.GetVpcResponse, error)
func (*AlibabaCloud) GetZones ¶
func (p *AlibabaCloud) GetZones(req cloud.GetZonesRequest) (cloud.GetZonesResponse, error)
func (*AlibabaCloud) ProviderType ¶
func (*AlibabaCloud) ProviderType() string
func (*AlibabaCloud) StartInstances ¶ added in v0.2.1
func (p *AlibabaCloud) StartInstances(ids []string) error
func (*AlibabaCloud) StopInstances ¶ added in v0.2.1
func (p *AlibabaCloud) StopInstances(ids []string) error
Click to show internal directories.
Click to hide internal directories.