Versions in this module Expand all Collapse all v0 v0.7.1 Dec 15, 2022 Changes in this version + type ECloud struct + func New(ak, sk, regionId string) (*ECloud, error) + func (p *ECloud) AddEgressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error + func (p *ECloud) AddIngressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error + func (p *ECloud) AllocateEip(req cloud.AllocateEipRequest) (ids []string, err error) + func (p *ECloud) AssociateEip(id, instanceId, vpcId string) error + func (p *ECloud) BatchCreate(m cloud.Params, num int) (instanceIds []string, err error) + func (p *ECloud) BatchDelete(ids []string, regionId string) error + func (p *ECloud) ContainerInstanceList(region string, pageNumber, pageSize int) ([]cloud.RegistryInstance, int, error) + func (p *ECloud) ConvertPublicIpToEip(req cloud.ConvertPublicIpToEipRequest) error + func (p *ECloud) CreateKeyPair(req cloud.CreateKeyPairRequest) (cloud.CreateKeyPairResponse, error) + func (p *ECloud) CreateSecurityGroup(req cloud.CreateSecurityGroupRequest) (cloud.CreateSecurityGroupResponse, error) + func (p *ECloud) CreateSwitch(req cloud.CreateSwitchRequest) (cloud.CreateSwitchResponse, error) + func (p *ECloud) CreateVPC(req cloud.CreateVpcRequest) (cloud.CreateVpcResponse, error) + func (p *ECloud) DescribeAvailableResource(req cloud.DescribeAvailableResourceRequest) (cloud.DescribeAvailableResourceResponse, error) + func (p *ECloud) DescribeEip(req cloud.DescribeEipRequest) (cloud.DescribeEipResponse, error) + func (p *ECloud) DescribeGroupRules(req cloud.DescribeGroupRulesRequest) (cloud.DescribeGroupRulesResponse, error) + func (p *ECloud) DescribeImages(req cloud.DescribeImagesRequest) (cloud.DescribeImagesResponse, error) + func (p *ECloud) DescribeInstanceTypes(req cloud.DescribeInstanceTypesRequest) (cloud.DescribeInstanceTypesResponse, error) + func (p *ECloud) DescribeKeyPairs(req cloud.DescribeKeyPairsRequest) (cloud.DescribeKeyPairsResponse, error) + func (p *ECloud) DescribeSecurityGroups(req cloud.DescribeSecurityGroupsRequest) (cloud.DescribeSecurityGroupsResponse, error) + func (p *ECloud) DescribeSwitches(req cloud.DescribeSwitchesRequest) (cloud.DescribeSwitchesResponse, error) + func (p *ECloud) DescribeVpcs(req cloud.DescribeVpcsRequest) (cloud.DescribeVpcsResponse, error) + func (p *ECloud) DisassociateEip(id string) error + func (p *ECloud) EnterpriseImageList(region, instanceId, repoId, namespace, repoName string, ...) ([]cloud.DockerArtifact, int, error) + func (p *ECloud) EnterpriseNamespaceList(region, instanceId string, pageNumber, pageSize int) ([]cloud.Namespace, int, error) + func (p *ECloud) EnterpriseRepositoryList(region, instanceId, namespace string, pageNumber, pageSize int) ([]cloud.Repository, int, error) + func (p *ECloud) GetEips(ids []string, regionId string) (map[string]cloud.Eip, error) + func (p *ECloud) GetInstances(ids []string) (instances []cloud.Instance, err error) + func (p *ECloud) GetInstancesByCluster(regionId, clusterName string) (instances []cloud.Instance, err error) + func (p *ECloud) GetInstancesByTags(region string, tags []cloud.Tag) (instances []cloud.Instance, err error) + func (p *ECloud) GetObjectDownloadUrl(bucketName, objectKey string) (string, error) + func (p *ECloud) GetOrders(req cloud.GetOrdersRequest) (cloud.GetOrdersResponse, error) + func (p *ECloud) GetOssDownloadUrl(endpoint, bucketName, region string) string + func (p *ECloud) GetRegions() (cloud.GetRegionsResponse, error) + func (p *ECloud) GetSwitch(req cloud.GetSwitchRequest) (cloud.GetSwitchResponse, error) + func (p *ECloud) GetVPC(req cloud.GetVpcRequest) (cloud.GetVpcResponse, error) + func (p *ECloud) GetZones(req cloud.GetZonesRequest) (cloud.GetZonesResponse, error) + func (p *ECloud) ImportKeyPair(req cloud.ImportKeyPairRequest) (cloud.ImportKeyPairResponse, error) + func (p *ECloud) ListBucket(endpoint string) ([]cloud.BucketProperties, error) + func (p *ECloud) ListObjects(endpoint, bucketName, prefix string) ([]cloud.ObjectProperties, error) + func (p *ECloud) PersonalImageList(region, repoNamespace, repoName string, pageNum, pageSize int) ([]cloud.DockerArtifact, int, error) + func (p *ECloud) PersonalNamespaceList(region string) ([]cloud.Namespace, error) + func (p *ECloud) PersonalRepositoryList(region, namespace string, pageNumber, pageSize int) ([]cloud.Repository, int, error) + func (p *ECloud) ProviderType() string + func (p *ECloud) ReleaseEip(ids []string) (err error) + func (p *ECloud) StartInstances(ids []string) error + func (p *ECloud) StopInstances(ids []string) error