Documentation ¶
Index ¶
- Constants
- type AlibabaCloud
- func (p *AlibabaCloud) AddEgressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error
- func (p *AlibabaCloud) AddIngressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error
- func (p *AlibabaCloud) AllocateEip(req cloud.AllocateEipRequest) (ids []string, err error)
- func (p *AlibabaCloud) AssociateEip(id, instanceId, vpcId string) 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) ContainerInstanceList(region string, pageNumber, pageSize int) ([]cloud.RegistryInstance, int, error)
- func (p *AlibabaCloud) ConvertPublicIpToEip(req cloud.ConvertPublicIpToEipRequest) error
- func (p *AlibabaCloud) CreateKeyPair(req cloud.CreateKeyPairRequest) (cloud.CreateKeyPairResponse, 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) DescribeEip(req cloud.DescribeEipRequest) (cloud.DescribeEipResponse, 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) DescribeKeyPairs(req cloud.DescribeKeyPairsRequest) (cloud.DescribeKeyPairsResponse, 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) DisassociateEip(id string) error
- func (p *AlibabaCloud) EnterpriseImageList(region, instanceId, repoId, namespace, repoName string, ...) ([]cloud.DockerArtifact, int, error)
- func (p *AlibabaCloud) EnterpriseNamespaceList(region, instanceId string, pageNumber, pageSize int) ([]cloud.Namespace, int, error)
- func (p *AlibabaCloud) EnterpriseRepositoryList(region, instanceId, namespace string, pageNumber, pageSize int) ([]cloud.Repository, int, error)
- func (p *AlibabaCloud) GetEips(ids []string, regionId string) (map[string]cloud.Eip, 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) GetObjectDownloadUrl(BucketName, ObjectKey string) (string, error)
- func (p *AlibabaCloud) GetOrders(req cloud.GetOrdersRequest) (cloud.GetOrdersResponse, error)
- func (p *AlibabaCloud) GetOssDownloadUrl(endpoint, bucketName, region string) string
- 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 (p *AlibabaCloud) ImportKeyPair(req cloud.ImportKeyPairRequest) (cloud.ImportKeyPairResponse, error)
- func (p *AlibabaCloud) ListBucket(endpoint string) (buckets []cloud.BucketProperties, err error)
- func (p *AlibabaCloud) ListObjects(endpoint, bucketName, prefix string) (ls []cloud.ObjectProperties, err error)
- func (p *AlibabaCloud) PersonalImageList(region, repoNamespace, repoName string, pageNumber, pageSize int) ([]cloud.DockerArtifact, int, error)
- func (p *AlibabaCloud) PersonalNamespaceList(region string) ([]cloud.Namespace, error)
- func (p *AlibabaCloud) PersonalRepositoryList(region, namespace string, pageNumber, pageSize int) ([]cloud.Repository, int, error)
- func (*AlibabaCloud) ProviderType() string
- func (p *AlibabaCloud) ReleaseEip(ids []string) (err error)
- 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) AllocateEip ¶ added in v0.7.1
func (p *AlibabaCloud) AllocateEip(req cloud.AllocateEipRequest) (ids []string, err error)
func (*AlibabaCloud) AssociateEip ¶ added in v0.7.1
func (p *AlibabaCloud) AssociateEip(id, instanceId, vpcId string) error
func (*AlibabaCloud) BatchCreate ¶
BatchCreate the maximum of 'num' is 100
func (*AlibabaCloud) BatchDelete ¶
func (p *AlibabaCloud) BatchDelete(ids []string, regionId string) (err error)
BatchDelete 出现InvalidInstanceId.NotFound错误后,request不能复用,每次循环需重新创建
func (*AlibabaCloud) ContainerInstanceList ¶ added in v0.7.1
func (p *AlibabaCloud) ContainerInstanceList(region string, pageNumber, pageSize int) ([]cloud.RegistryInstance, int, error)
func (*AlibabaCloud) ConvertPublicIpToEip ¶ added in v0.7.1
func (p *AlibabaCloud) ConvertPublicIpToEip(req cloud.ConvertPublicIpToEipRequest) error
func (*AlibabaCloud) CreateKeyPair ¶ added in v0.7.0
func (p *AlibabaCloud) CreateKeyPair(req cloud.CreateKeyPairRequest) (cloud.CreateKeyPairResponse, 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)
DescribeAvailableResource response miss InstanceChargeType
func (*AlibabaCloud) DescribeEip ¶ added in v0.7.1
func (p *AlibabaCloud) DescribeEip(req cloud.DescribeEipRequest) (cloud.DescribeEipResponse, 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) DescribeKeyPairs ¶ added in v0.7.0
func (p *AlibabaCloud) DescribeKeyPairs(req cloud.DescribeKeyPairsRequest) (cloud.DescribeKeyPairsResponse, error)
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) DisassociateEip ¶ added in v0.7.1
func (p *AlibabaCloud) DisassociateEip(id string) error
func (*AlibabaCloud) EnterpriseImageList ¶ added in v0.7.1
func (p *AlibabaCloud) EnterpriseImageList(region, instanceId, repoId, namespace, repoName string, pageNumber, pageSize int) ([]cloud.DockerArtifact, int, error)
func (*AlibabaCloud) EnterpriseNamespaceList ¶ added in v0.7.1
func (*AlibabaCloud) EnterpriseRepositoryList ¶ added in v0.7.1
func (p *AlibabaCloud) EnterpriseRepositoryList(region, instanceId, namespace string, pageNumber, pageSize int) ([]cloud.Repository, int, 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) GetObjectDownloadUrl ¶ added in v0.7.1
func (p *AlibabaCloud) GetObjectDownloadUrl(BucketName, ObjectKey string) (string, error)
func (*AlibabaCloud) GetOrders ¶
func (p *AlibabaCloud) GetOrders(req cloud.GetOrdersRequest) (cloud.GetOrdersResponse, error)
func (*AlibabaCloud) GetOssDownloadUrl ¶ added in v0.7.1
func (p *AlibabaCloud) GetOssDownloadUrl(endpoint, bucketName, region string) string
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) ImportKeyPair ¶ added in v0.7.0
func (p *AlibabaCloud) ImportKeyPair(req cloud.ImportKeyPairRequest) (cloud.ImportKeyPairResponse, error)
func (*AlibabaCloud) ListBucket ¶ added in v0.7.1
func (p *AlibabaCloud) ListBucket(endpoint string) (buckets []cloud.BucketProperties, err error)
func (*AlibabaCloud) ListObjects ¶ added in v0.7.1
func (p *AlibabaCloud) ListObjects(endpoint, bucketName, prefix string) (ls []cloud.ObjectProperties, err error)
func (*AlibabaCloud) PersonalImageList ¶ added in v0.7.1
func (p *AlibabaCloud) PersonalImageList(region, repoNamespace, repoName string, pageNumber, pageSize int) ([]cloud.DockerArtifact, int, error)
func (*AlibabaCloud) PersonalNamespaceList ¶ added in v0.7.1
func (p *AlibabaCloud) PersonalNamespaceList(region string) ([]cloud.Namespace, error)
func (*AlibabaCloud) PersonalRepositoryList ¶ added in v0.7.1
func (p *AlibabaCloud) PersonalRepositoryList(region, namespace string, pageNumber, pageSize int) ([]cloud.Repository, int, error)
func (*AlibabaCloud) ProviderType ¶
func (*AlibabaCloud) ProviderType() string
func (*AlibabaCloud) ReleaseEip ¶ added in v0.7.1
func (p *AlibabaCloud) ReleaseEip(ids []string) (err error)
ReleaseEip 包年包月类型的EIP不支持释放
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.