Documentation ¶
Index ¶
- func SizeNumConvert(pageNumber, pageSize int) (offset, limit *int64)
- type TencentCloud
- func (p *TencentCloud) AddEgressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error
- func (p *TencentCloud) AddIngressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error
- func (p *TencentCloud) AllocateEip(req cloud.AllocateEipRequest) (ids []string, err error)
- func (p *TencentCloud) AssociateEip(id, instanceId, vpcId string) error
- func (p *TencentCloud) BatchCreate(m cloud.Params, num int) ([]string, error)
- func (p *TencentCloud) BatchDelete(ids []string, regionId string) error
- func (p *TencentCloud) ContainerInstanceList(region string, pageNumber, pageSize int) ([]cloud.RegistryInstance, int, error)
- func (p *TencentCloud) ConvertPublicIpToEip(req cloud.ConvertPublicIpToEipRequest) error
- func (p *TencentCloud) CreateKeyPair(req cloud.CreateKeyPairRequest) (cloud.CreateKeyPairResponse, error)
- func (p *TencentCloud) CreateSecurityGroup(req cloud.CreateSecurityGroupRequest) (cloud.CreateSecurityGroupResponse, error)
- func (p *TencentCloud) CreateSwitch(req cloud.CreateSwitchRequest) (cloud.CreateSwitchResponse, error)
- func (p *TencentCloud) CreateVPC(req cloud.CreateVpcRequest) (cloud.CreateVpcResponse, error)
- func (p *TencentCloud) DescribeAvailableResource(req cloud.DescribeAvailableResourceRequest) (cloud.DescribeAvailableResourceResponse, error)
- func (p *TencentCloud) DescribeEip(req cloud.DescribeEipRequest) (cloud.DescribeEipResponse, error)
- func (p *TencentCloud) DescribeGroupRules(req cloud.DescribeGroupRulesRequest) (cloud.DescribeGroupRulesResponse, error)
- func (p *TencentCloud) DescribeImages(req cloud.DescribeImagesRequest) (cloud.DescribeImagesResponse, error)
- func (p *TencentCloud) DescribeInstanceTypes(req cloud.DescribeInstanceTypesRequest) (cloud.DescribeInstanceTypesResponse, error)
- func (p *TencentCloud) DescribeKeyPairs(req cloud.DescribeKeyPairsRequest) (cloud.DescribeKeyPairsResponse, error)
- func (p *TencentCloud) DescribeSecurityGroups(req cloud.DescribeSecurityGroupsRequest) (cloud.DescribeSecurityGroupsResponse, error)
- func (p *TencentCloud) DescribeSwitches(req cloud.DescribeSwitchesRequest) (cloud.DescribeSwitchesResponse, error)
- func (p *TencentCloud) DescribeVpcs(req cloud.DescribeVpcsRequest) (cloud.DescribeVpcsResponse, error)
- func (p *TencentCloud) DisassociateEip(id string) error
- func (p *TencentCloud) EnterpriseImageList(region, instanceId, repoId, namespace, repoName string, ...) ([]cloud.DockerArtifact, int, error)
- func (p *TencentCloud) EnterpriseNamespaceList(region, instanceId string, pageNumber, pageSize int) ([]cloud.Namespace, int, error)
- func (p *TencentCloud) EnterpriseRepositoryList(region, instanceId, namespace string, pageNumber, pageSize int) ([]cloud.Repository, int, error)
- func (p *TencentCloud) GetEips(ids []string, regionId string) (map[string]cloud.Eip, error)
- func (p *TencentCloud) GetInstances(ids []string) (instances []cloud.Instance, err error)
- func (p *TencentCloud) GetInstancesByCluster(regionId, clusterName string) (instances []cloud.Instance, err error)
- func (p *TencentCloud) GetInstancesByTags(regionId string, tags []cloud.Tag) (instances []cloud.Instance, err error)
- func (p *TencentCloud) GetObjectDownloadUrl(endpoint, objectKey string) (string, error)
- func (p *TencentCloud) GetOrders(req cloud.GetOrdersRequest) (cloud.GetOrdersResponse, error)
- func (p *TencentCloud) GetOssDownloadUrl(endpoint, bucketName, region string) string
- func (p *TencentCloud) GetRegions() (cloud.GetRegionsResponse, error)
- func (p *TencentCloud) GetSwitch(req cloud.GetSwitchRequest) (cloud.GetSwitchResponse, error)
- func (p *TencentCloud) GetVPC(req cloud.GetVpcRequest) (cloud.GetVpcResponse, error)
- func (p *TencentCloud) GetZones(req cloud.GetZonesRequest) (cloud.GetZonesResponse, error)
- func (p *TencentCloud) ImportKeyPair(req cloud.ImportKeyPairRequest) (cloud.ImportKeyPairResponse, error)
- func (p *TencentCloud) ListBucket(endpoint string) (res []cloud.BucketProperties, err error)
- func (p *TencentCloud) ListObjects(endpoint, bucketName, prefix string) (res []cloud.ObjectProperties, err error)
- func (p *TencentCloud) PersonalImageList(region, repoNamespace, repoName string, pageNumber, pageSize int) ([]cloud.DockerArtifact, int, error)
- func (p *TencentCloud) PersonalNamespaceList(region string) ([]cloud.Namespace, error)
- func (p *TencentCloud) PersonalRepositoryList(region, namespace string, pageNumber, pageSize int) ([]cloud.Repository, int, error)
- func (p *TencentCloud) ProviderType() string
- func (p *TencentCloud) ReleaseEip(ids []string) (err error)
- func (p *TencentCloud) StartInstances(ids []string) error
- func (p *TencentCloud) StopInstances(ids []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SizeNumConvert ¶ added in v0.7.1
Types ¶
type TencentCloud ¶
type TencentCloud struct {
// contains filtered or unexported fields
}
func New ¶
func New(ak, sk, region string) (h *TencentCloud, err error)
func (*TencentCloud) AddEgressSecurityGroupRule ¶
func (p *TencentCloud) AddEgressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error
func (*TencentCloud) AddIngressSecurityGroupRule ¶
func (p *TencentCloud) AddIngressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error
AddIngressSecurityGroupRule 入参各云得统一
func (*TencentCloud) AllocateEip ¶ added in v0.7.1
func (p *TencentCloud) AllocateEip(req cloud.AllocateEipRequest) (ids []string, err error)
func (*TencentCloud) AssociateEip ¶ added in v0.7.1
func (p *TencentCloud) AssociateEip(id, instanceId, vpcId string) error
func (*TencentCloud) BatchCreate ¶
BatchCreate AsVpcGateway
func (*TencentCloud) BatchDelete ¶
func (p *TencentCloud) BatchDelete(ids []string, regionId string) error
BatchDelete 非后付费机器,子机销毁时,无法自动删除数据盘
func (*TencentCloud) ContainerInstanceList ¶ added in v0.7.1
func (p *TencentCloud) ContainerInstanceList(region string, pageNumber, pageSize int) ([]cloud.RegistryInstance, int, error)
func (*TencentCloud) ConvertPublicIpToEip ¶ added in v0.7.1
func (p *TencentCloud) ConvertPublicIpToEip(req cloud.ConvertPublicIpToEipRequest) error
func (*TencentCloud) CreateKeyPair ¶ added in v0.7.0
func (p *TencentCloud) CreateKeyPair(req cloud.CreateKeyPairRequest) (cloud.CreateKeyPairResponse, error)
func (*TencentCloud) CreateSecurityGroup ¶
func (p *TencentCloud) CreateSecurityGroup(req cloud.CreateSecurityGroupRequest) (cloud.CreateSecurityGroupResponse, error)
func (*TencentCloud) CreateSwitch ¶
func (p *TencentCloud) CreateSwitch(req cloud.CreateSwitchRequest) (cloud.CreateSwitchResponse, error)
func (*TencentCloud) CreateVPC ¶
func (p *TencentCloud) CreateVPC(req cloud.CreateVpcRequest) (cloud.CreateVpcResponse, error)
func (*TencentCloud) DescribeAvailableResource ¶
func (p *TencentCloud) DescribeAvailableResource(req cloud.DescribeAvailableResourceRequest) (cloud.DescribeAvailableResourceResponse, error)
func (*TencentCloud) DescribeEip ¶ added in v0.7.1
func (p *TencentCloud) DescribeEip(req cloud.DescribeEipRequest) (cloud.DescribeEipResponse, error)
func (*TencentCloud) DescribeGroupRules ¶
func (p *TencentCloud) DescribeGroupRules(req cloud.DescribeGroupRulesRequest) (cloud.DescribeGroupRulesResponse, error)
func (*TencentCloud) DescribeImages ¶
func (p *TencentCloud) DescribeImages(req cloud.DescribeImagesRequest) (cloud.DescribeImagesResponse, error)
DescribeImages miss OsType
func (*TencentCloud) DescribeInstanceTypes ¶
func (p *TencentCloud) DescribeInstanceTypes(req cloud.DescribeInstanceTypesRequest) (cloud.DescribeInstanceTypesResponse, error)
func (*TencentCloud) DescribeKeyPairs ¶ added in v0.7.0
func (p *TencentCloud) DescribeKeyPairs(req cloud.DescribeKeyPairsRequest) (cloud.DescribeKeyPairsResponse, error)
func (*TencentCloud) DescribeSecurityGroups ¶
func (p *TencentCloud) DescribeSecurityGroups(req cloud.DescribeSecurityGroupsRequest) (cloud.DescribeSecurityGroupsResponse, error)
func (*TencentCloud) DescribeSwitches ¶
func (p *TencentCloud) DescribeSwitches(req cloud.DescribeSwitchesRequest) (cloud.DescribeSwitchesResponse, error)
func (*TencentCloud) DescribeVpcs ¶
func (p *TencentCloud) DescribeVpcs(req cloud.DescribeVpcsRequest) (cloud.DescribeVpcsResponse, error)
func (*TencentCloud) DisassociateEip ¶ added in v0.7.1
func (p *TencentCloud) DisassociateEip(id string) error
func (*TencentCloud) EnterpriseImageList ¶ added in v0.7.1
func (p *TencentCloud) EnterpriseImageList(region, instanceId, repoId, namespace, repoName string, pageNumber, pageSize int) ([]cloud.DockerArtifact, int, error)
func (*TencentCloud) EnterpriseNamespaceList ¶ added in v0.7.1
func (*TencentCloud) EnterpriseRepositoryList ¶ added in v0.7.1
func (p *TencentCloud) EnterpriseRepositoryList(region, instanceId, namespace string, pageNumber, pageSize int) ([]cloud.Repository, int, error)
func (*TencentCloud) GetInstances ¶
func (p *TencentCloud) GetInstances(ids []string) (instances []cloud.Instance, err error)
func (*TencentCloud) GetInstancesByCluster ¶
func (p *TencentCloud) GetInstancesByCluster(regionId, clusterName string) (instances []cloud.Instance, err error)
func (*TencentCloud) GetInstancesByTags ¶
func (*TencentCloud) GetObjectDownloadUrl ¶ added in v0.7.1
func (p *TencentCloud) GetObjectDownloadUrl(endpoint, objectKey string) (string, error)
func (*TencentCloud) GetOrders ¶
func (p *TencentCloud) GetOrders(req cloud.GetOrdersRequest) (cloud.GetOrdersResponse, error)
func (*TencentCloud) GetOssDownloadUrl ¶ added in v0.7.1
func (p *TencentCloud) GetOssDownloadUrl(endpoint, bucketName, region string) string
func (*TencentCloud) GetRegions ¶
func (p *TencentCloud) GetRegions() (cloud.GetRegionsResponse, error)
GetRegions 暂时返回中文名字
func (*TencentCloud) GetSwitch ¶
func (p *TencentCloud) GetSwitch(req cloud.GetSwitchRequest) (cloud.GetSwitchResponse, error)
func (*TencentCloud) GetVPC ¶
func (p *TencentCloud) GetVPC(req cloud.GetVpcRequest) (cloud.GetVpcResponse, error)
func (*TencentCloud) GetZones ¶
func (p *TencentCloud) GetZones(req cloud.GetZonesRequest) (cloud.GetZonesResponse, error)
GetZones zoneId zone
func (*TencentCloud) ImportKeyPair ¶ added in v0.7.0
func (p *TencentCloud) ImportKeyPair(req cloud.ImportKeyPairRequest) (cloud.ImportKeyPairResponse, error)
func (*TencentCloud) ListBucket ¶ added in v0.7.1
func (p *TencentCloud) ListBucket(endpoint string) (res []cloud.BucketProperties, err error)
func (*TencentCloud) ListObjects ¶ added in v0.7.1
func (p *TencentCloud) ListObjects(endpoint, bucketName, prefix string) (res []cloud.ObjectProperties, err error)
ListObjects endpoint Cos 的静态地址 bucketName 被忽略
func (*TencentCloud) PersonalImageList ¶ added in v0.7.1
func (p *TencentCloud) PersonalImageList(region, repoNamespace, repoName string, pageNumber, pageSize int) ([]cloud.DockerArtifact, int, error)
func (*TencentCloud) PersonalNamespaceList ¶ added in v0.7.1
func (p *TencentCloud) PersonalNamespaceList(region string) ([]cloud.Namespace, error)
func (*TencentCloud) PersonalRepositoryList ¶ added in v0.7.1
func (p *TencentCloud) PersonalRepositoryList(region, namespace string, pageNumber, pageSize int) ([]cloud.Repository, int, error)
func (*TencentCloud) ProviderType ¶
func (p *TencentCloud) ProviderType() string
func (*TencentCloud) ReleaseEip ¶ added in v0.7.1
func (p *TencentCloud) ReleaseEip(ids []string) (err error)
func (*TencentCloud) StartInstances ¶
func (p *TencentCloud) StartInstances(ids []string) error
func (*TencentCloud) StopInstances ¶
func (p *TencentCloud) StopInstances(ids []string) error
Click to show internal directories.
Click to hide internal directories.