alibaba

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

Documentation

Index

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

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

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

func (*AlibabaCloud) CreateSwitch

func (*AlibabaCloud) CreateVPC

func (*AlibabaCloud) DescribeAvailableResource

DescribeAvailableResource response miss InstanceChargeType

func (*AlibabaCloud) DescribeEip added in v0.7.1

func (*AlibabaCloud) DescribeGroupRules

func (*AlibabaCloud) DescribeImages

func (*AlibabaCloud) DescribeInstanceTypes

DescribeInstanceTypes Up to 10 at once

func (*AlibabaCloud) DescribeKeyPairs added in v0.7.0

func (*AlibabaCloud) DescribeSwitches

func (*AlibabaCloud) DescribeVpcs

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

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

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

func (*AlibabaCloud) GetObjectDownloadUrl added in v0.7.1

func (p *AlibabaCloud) GetObjectDownloadUrl(BucketName, ObjectKey string) (string, error)

func (*AlibabaCloud) GetOrders

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

func (*AlibabaCloud) GetZones

func (*AlibabaCloud) ImportKeyPair added in v0.7.0

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

Jump to

Keyboard shortcuts

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