ecloud

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: 16 Imported by: 0

README

ECloud 移动云

注意
  • 移动云所有接口调用应先判断 err,再判断 *Model.xxxResponse,否则可能会忽略掉一些业务异常。因为 err 一般是调用链路上的错误,如果调用成功一般 err == nilResponse 代表请求正确处理,但是业务处理可能有异常。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECloud

type ECloud struct {
	// contains filtered or unexported fields
}

func New

func New(ak, sk, regionId string) (*ECloud, error)

func (*ECloud) AddEgressSecurityGroupRule

func (p *ECloud) AddEgressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error

func (*ECloud) AddIngressSecurityGroupRule

func (p *ECloud) AddIngressSecurityGroupRule(req cloud.AddSecurityGroupRuleRequest) error

func (*ECloud) AllocateEip

func (p *ECloud) AllocateEip(req cloud.AllocateEipRequest) (ids []string, err error)

func (*ECloud) AssociateEip

func (p *ECloud) AssociateEip(id, instanceId, vpcId string) error

func (*ECloud) BatchCreate

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

func (*ECloud) BatchDelete

func (p *ECloud) BatchDelete(ids []string, regionId string) error

func (*ECloud) ContainerInstanceList

func (p *ECloud) ContainerInstanceList(region string, pageNumber, pageSize int) ([]cloud.RegistryInstance, int, error)

func (*ECloud) ConvertPublicIpToEip

func (p *ECloud) ConvertPublicIpToEip(req cloud.ConvertPublicIpToEipRequest) error

func (*ECloud) CreateKeyPair

func (*ECloud) CreateSwitch

func (*ECloud) CreateVPC

func (*ECloud) DescribeEip

func (*ECloud) DescribeImages

func (*ECloud) DescribeKeyPairs

func (*ECloud) DescribeSwitches

func (*ECloud) DescribeVpcs

func (*ECloud) DisassociateEip

func (p *ECloud) DisassociateEip(id string) error

func (*ECloud) EnterpriseImageList

func (p *ECloud) EnterpriseImageList(region, instanceId, repoId, namespace, repoName string, pageNumber, pageSize int) ([]cloud.DockerArtifact, int, error)

func (*ECloud) EnterpriseNamespaceList

func (p *ECloud) EnterpriseNamespaceList(region, instanceId string, pageNumber, pageSize int) ([]cloud.Namespace, int, error)

func (*ECloud) EnterpriseRepositoryList

func (p *ECloud) EnterpriseRepositoryList(region, instanceId, namespace string, pageNumber, pageSize int) ([]cloud.Repository, int, error)

func (*ECloud) GetEips

func (p *ECloud) GetEips(ids []string, regionId string) (map[string]cloud.Eip, error)

func (*ECloud) GetInstances

func (p *ECloud) GetInstances(ids []string) (instances []cloud.Instance, err error)

func (*ECloud) GetInstancesByCluster

func (p *ECloud) GetInstancesByCluster(regionId, clusterName string) (instances []cloud.Instance, err error)

func (*ECloud) GetInstancesByTags

func (p *ECloud) GetInstancesByTags(region string, tags []cloud.Tag) (instances []cloud.Instance, err error)

func (*ECloud) GetObjectDownloadUrl

func (p *ECloud) GetObjectDownloadUrl(bucketName, objectKey string) (string, error)

func (*ECloud) GetOrders

func (*ECloud) GetOssDownloadUrl

func (p *ECloud) GetOssDownloadUrl(endpoint, bucketName, region string) string

func (*ECloud) GetRegions

func (p *ECloud) GetRegions() (cloud.GetRegionsResponse, error)

func (*ECloud) GetSwitch

func (*ECloud) GetVPC

func (p *ECloud) GetVPC(req cloud.GetVpcRequest) (cloud.GetVpcResponse, error)

func (*ECloud) GetZones

func (*ECloud) ImportKeyPair

func (*ECloud) ListBucket

func (p *ECloud) ListBucket(endpoint string) ([]cloud.BucketProperties, error)

func (*ECloud) ListObjects

func (p *ECloud) ListObjects(endpoint, bucketName, prefix string) ([]cloud.ObjectProperties, error)

func (*ECloud) PersonalImageList

func (p *ECloud) PersonalImageList(region, repoNamespace, repoName string, pageNum, pageSize int) ([]cloud.DockerArtifact, int, error)

func (*ECloud) PersonalNamespaceList

func (p *ECloud) PersonalNamespaceList(region string) ([]cloud.Namespace, error)

func (*ECloud) PersonalRepositoryList

func (p *ECloud) PersonalRepositoryList(region, namespace string, pageNumber, pageSize int) ([]cloud.Repository, int, error)

func (*ECloud) ProviderType

func (p *ECloud) ProviderType() string

func (*ECloud) ReleaseEip

func (p *ECloud) ReleaseEip(ids []string) (err error)

func (*ECloud) StartInstances

func (p *ECloud) StartInstances(ids []string) error

func (*ECloud) StopInstances

func (p *ECloud) StopInstances(ids []string) error

Jump to

Keyboard shortcuts

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