tencent

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SizeNumConvert added in v0.7.1

func SizeNumConvert(pageNumber, pageSize int) (offset, limit *int64)

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

func (p *TencentCloud) BatchCreate(m cloud.Params, num int) ([]string, error)

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 (*TencentCloud) CreateSecurityGroup

func (*TencentCloud) CreateSwitch

func (*TencentCloud) CreateVPC

func (*TencentCloud) DescribeEip added in v0.7.1

func (*TencentCloud) DescribeGroupRules

func (*TencentCloud) DescribeImages

DescribeImages miss OsType

func (*TencentCloud) DescribeKeyPairs added in v0.7.0

func (*TencentCloud) DescribeSwitches

func (*TencentCloud) DescribeVpcs

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 (p *TencentCloud) EnterpriseNamespaceList(region, instanceId string, pageNumber, pageSize int) ([]cloud.Namespace, int, error)

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) GetEips added in v0.7.1

func (p *TencentCloud) GetEips(ids []string, regionId string) (map[string]cloud.Eip, 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 (p *TencentCloud) GetInstancesByTags(regionId string, tags []cloud.Tag) (instances []cloud.Instance, err error)

func (*TencentCloud) GetObjectDownloadUrl added in v0.7.1

func (p *TencentCloud) GetObjectDownloadUrl(endpoint, objectKey string) (string, error)

func (*TencentCloud) GetOrders

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 (*TencentCloud) GetVPC

func (*TencentCloud) GetZones

GetZones zoneId zone

func (*TencentCloud) ImportKeyPair added in v0.7.0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL