connectivity

package
v0.0.0-...-53af832 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ECSCode           = ServiceCode("ECS")
	ESSCode           = ServiceCode("ESS")
	RAMCode           = ServiceCode("RAM")
	VPCCode           = ServiceCode("VPC")
	SLBCode           = ServiceCode("SLB")
	RDSCode           = ServiceCode("RDS")
	OSSCode           = ServiceCode("OSS")
	ONSCode           = ServiceCode("ONS")
	ALIKAFKACode      = ServiceCode("ALIKAFKA")
	CONTAINCode       = ServiceCode("CS")
	CRCode            = ServiceCode("CR")
	DOMAINCode        = ServiceCode("DOMAIN")
	CDNCode           = ServiceCode("CDN")
	CMSCode           = ServiceCode("CMS")
	KMSCode           = ServiceCode("KMS")
	OTSCode           = ServiceCode("OTS")
	DNSCode           = ServiceCode("DNS")
	PVTZCode          = ServiceCode("PVTZ")
	LOGCode           = ServiceCode("LOG")
	FCCode            = ServiceCode("FC")
	DDSCode           = ServiceCode("DDS")
	GPDBCode          = ServiceCode("GPDB")
	STSCode           = ServiceCode("STS")
	CENCode           = ServiceCode("CEN")
	KVSTORECode       = ServiceCode("KVSTORE")
	DATAHUBCode       = ServiceCode("DATAHUB")
	MNSCode           = ServiceCode("MNS")
	CLOUDAPICode      = ServiceCode("APIGATEWAY")
	DRDSCode          = ServiceCode("DRDS")
	LOCATIONCode      = ServiceCode("LOCATION")
	ELASTICSEARCHCode = ServiceCode("ELASTICSEARCH")
	NASCode           = ServiceCode("NAS")
	ACTIONTRAILCode   = ServiceCode("ACTIONTRAIL")
	BSSOPENAPICode    = ServiceCode("BSSOPENAPI")
	DDOSCOOCode       = ServiceCode("DDOSCOO")
	DDOSBGPCode       = ServiceCode("DDOSBGP")
)
View Source
const (
	Hangzhou    = Region("cn-hangzhou")
	Qingdao     = Region("cn-qingdao")
	Beijing     = Region("cn-beijing")
	Hongkong    = Region("cn-hongkong")
	Shenzhen    = Region("cn-shenzhen")
	Shanghai    = Region("cn-shanghai")
	Zhangjiakou = Region("cn-zhangjiakou")
	Huhehaote   = Region("cn-huhehaote")
	ChengDu     = Region("cn-chengdu")

	APSouthEast1 = Region("ap-southeast-1")
	APNorthEast1 = Region("ap-northeast-1")
	APSouthEast2 = Region("ap-southeast-2")
	APSouthEast3 = Region("ap-southeast-3")
	APSouthEast5 = Region("ap-southeast-5")

	APSouth1 = Region("ap-south-1")

	USWest1 = Region("us-west-1")
	USEast1 = Region("us-east-1")

	MEEast1 = Region("me-east-1")

	EUCentral1 = Region("eu-central-1")
	EUWest1    = Region("eu-west-1")

	ShenZhenFinance = Region("cn-shenzhen-finance-1")
	ShanghaiFinance = Region("cn-shanghai-finance-1")
)

Constants of region definition

View Source
const DefaultClientRetryCountSmall = 5
View Source
const Module = "Terraform-Module"
View Source
const Provider = "Terraform-Provider"
View Source
const Terraform = "HashiCorp-Terraform"

Variables

View Source
var APIGatewayNoSupportedRegions = []Region{Zhangjiakou, Huhehaote, USEast1, USWest1, EUWest1, MEEast1}
View Source
var ActiontrailNoSkipRegions = []Region{Hangzhou, EUCentral1, APSouth1}

ActiontrailNoSkipRegions only one can be owned by one account at the same time, skipped here to avoid multi regions concurrency conflict.

View Source
var CRNoSupportedRegions = []Region{Beijing, Hangzhou, Qingdao, Huhehaote, Zhangjiakou}
View Source
var CasClassicSupportedRegions = []Region{Hangzhou, APSouth1, MEEast1, EUCentral1, APNorthEast1, APSouthEast2}
View Source
var DatahubSupportedRegions = []Region{Beijing, Hangzhou, Shanghai, Shenzhen, APSouthEast1}
View Source
var DdoscooSupportedRegions = []Region{Hangzhou}
View Source
var DrdsClassicNoSupportedRegions = []Region{Hongkong}
View Source
var EcsSpotNoSupportedRegions = []Region{APSouth1}
View Source
var EssScalingConfigurationMultiSgSupportedRegions = []Region{APSouthEast1, APSouth1}
View Source
var GpdbSupportedRegions = []Region{Beijing, Shenzhen, Hangzhou, Shanghai, Hongkong}
View Source
var ManagedKubernetesSupportedRegions = []Region{Beijing, Hangzhou, Shanghai, APSouthEast1, APSouthEast3, APSouthEast5, APSouth1}
View Source
var MongoDBMultiAzSupportedRegions = []Region{Hangzhou, Beijing, Shenzhen, EUCentral1}
View Source
var NasNoSupportedRegions = []Region{Qingdao, APSouth1, APSouthEast3, APSouthEast5}
View Source
var NetworkACLSupportedRegions = []Region{Hongkong, APSouthEast5, APSouth1}
View Source
var OnsNoSupportRegions = []Region{APSouthEast5}
View Source
var OssVersioningSupportedRegions = []Region{APSouth1}
View Source
var OtsCapacityNoSupportedRegions = []Region{APSouthEast1, USWest1, USEast1}
View Source
var PrivateIPNoSupportedRegions = []Region{Beijing, Hangzhou, Shenzhen}
View Source
var RAMNoSkipRegions = []Region{Hangzhou, EUCentral1, APSouth1}

RAMNoSkipRegions resources only one can be owned by one account at the same time, skipped here to avoid multi regions concurrency conflict.

View Source
var RdsMultiAzNoSupportedRegions = []Region{Qingdao, APNorthEast1, APSouthEast5, MEEast1}
View Source
var RouteTableNoSupportedRegions = []Region{Beijing, Hangzhou, Shenzhen}

Functions

This section is empty.

Types

type APIVersion

type APIVersion string

type AliyunClient

type AliyunClient struct {
	Region          Region
	RegionID        string
	AccessKey       string
	SecretKey       string
	SecurityToken   string
	OtsInstanceName string
	// contains filtered or unexported fields
}

AliyunClient of aliyun

func (*AliyunClient) WithDNSClient

func (client *AliyunClient) WithDNSClient(do func(*alidns.Client) (interface{}, error)) (interface{}, error)

func (*AliyunClient) WithEcsClient

func (client *AliyunClient) WithEcsClient(do func(*ecs.Client) (interface{}, error)) (interface{}, error)

func (*AliyunClient) WithPvtzClient

func (client *AliyunClient) WithPvtzClient(do func(*pvtz.Client) (interface{}, error)) (interface{}, error)

func (*AliyunClient) WithRAMClient

func (client *AliyunClient) WithRAMClient(do func(*ram.Client) (interface{}, error)) (interface{}, error)

func (*AliyunClient) WithRdsClient

func (client *AliyunClient) WithRdsClient(do func(*rds.Client) (interface{}, error)) (interface{}, error)

func (*AliyunClient) WithSlbClient

func (client *AliyunClient) WithSlbClient(do func(*slb.Client) (interface{}, error)) (interface{}, error)

func (*AliyunClient) WithVpcClient

func (client *AliyunClient) WithVpcClient(do func(*vpc.Client) (interface{}, error)) (interface{}, error)

type Config

type Config struct {
	AccessKey                string
	SecretKey                string
	EcsRoleName              string
	Region                   Region
	RegionID                 string
	SecurityToken            string
	OtsInstanceName          string
	AccountID                string
	RAMRoleArn               string
	RAMRoleSessionName       string
	RAMRolePolicy            string
	RAMRoleSessionExpiration int
	EcsEndpoint              string
	RdsEndpoint              string
	SlbEndpoint              string
	VpcEndpoint              string
	CenEndpoint              string
	EssEndpoint              string
	OssEndpoint              string
	OnsEndpoint              string
	AlikafkaEndpoint         string
	DNSEndpoint              string
	RAMEndpoint              string
	CsEndpoint               string
	CrEndpoint               string
	CdnEndpoint              string
	KmsEndpoint              string
	OtsEndpoint              string
	CmsEndpoint              string
	PvtzEndpoint             string
	StsEndpoint              string
	LogEndpoint              string
	DrdsEndpoint             string
	DdsEndpoint              string
	GpdbEnpoint              string
	KVStoreEndpoint          string
	FcEndpoint               string
	ApigatewayEndpoint       string
	DatahubEndpoint          string
	MnsEndpoint              string
	LocationEndpoint         string
	ElasticsearchEndpoint    string
	NasEndpoint              string
	ActionTrailEndpoint      string
	BssOpenAPIEndpoint       string
	DdoscooEndpoint          string
	DdosbgpEndpoint          string

	SkipRegionValidation bool
	ConfigurationSource  string
}

Config of aliyun

func (*Config) Client

func (c *Config) Client() (*AliyunClient, error)

Client for AliyunClient

func (*Config) MakeConfigByEcsRoleName

func (c *Config) MakeConfigByEcsRoleName() error

type Endpoint

type Endpoint struct {
	Name      string    `xml:"name,attr"`
	RegionIds RegionIds `xml:"RegionIds"`
	Products  Products  `xml:"Products"`
}

type Endpoints

type Endpoints struct {
	Endpoint []Endpoint `xml:"Endpoint"`
}

xml

type Product

type Product struct {
	ProductName string `xml:"ProductName"`
	DomainName  string `xml:"DomainName"`
}

type Products

type Products struct {
	Product []Product `xml:"Product"`
}

type Region

type Region string

Region represents ECS region

type RegionIds

type RegionIds struct {
	RegionID string `xml:"RegionId"`
}

type ServiceCode

type ServiceCode string

Load endpoints from endpoints.xml or environment variables to meet specified application scenario, like private cloud.

Jump to

Keyboard shortcuts

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