connectivity

package
v1.0.150 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MPL-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiVersion20140526 = ApiVersion("2014-05-26")
	ApiVersion20160815 = ApiVersion("2016-08-15")
	ApiVersion20140515 = ApiVersion("2014-05-15")
	ApiVersion20190510 = ApiVersion("2019-05-10")
)
View Source
const (
	DcdnCode            = ServiceCode("DCDN")
	MseCode             = ServiceCode("MSE")
	ActiontrailCode     = ServiceCode("ACTIONTRAIL")
	OosCode             = ServiceCode("OOS")
	EcsCode             = ServiceCode("ECS")
	ASCMCode            = ServiceCode("ASCM")
	NasCode             = ServiceCode("NAS")
	EciCode             = ServiceCode("ECI")
	DdoscooCode         = ServiceCode("DDOSCOO")
	BssopenapiCode      = ServiceCode("BSSOPENAPI")
	AlidnsCode          = ServiceCode("ALIDNS")
	ResourcemanagerCode = ServiceCode("RESOURCEMANAGER")
	WafOpenapiCode      = ServiceCode("WAFOPENAPI")
	DmsEnterpriseCode   = ServiceCode("DMSENTERPRISE")
	DnsCode             = ServiceCode("DNS")
	KmsCode             = ServiceCode("KMS")
	CbnCode             = ServiceCode("CBN")
	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")
	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")
	CENCode             = ServiceCode("CEN")
	KVSTORECode         = ServiceCode("KVSTORE")
	POLARDBCode         = ServiceCode("POLARDB")
	DATAHUBCode         = ServiceCode("DATAHUB")
	MNSCode             = ServiceCode("MNS")
	CLOUDAPICode        = ServiceCode("APIGATEWAY")
	DRDSCode            = ServiceCode("DRDS")
	LOCATIONCode        = ServiceCode("LOCATION")
	ELASTICSEARCHCode   = ServiceCode("ELASTICSEARCH")
	BSSOPENAPICode      = ServiceCode("BSSOPENAPI")
	DDOSCOOCode         = ServiceCode("DDOSCOO")
	DDOSBGPCode         = ServiceCode("DDOSBGP")
	SAGCode             = ServiceCode("SAG")
	EMRCode             = ServiceCode("EMR")
	CasCode             = ServiceCode("CAS")
	YUNDUNDBAUDITCode   = ServiceCode("YUNDUNDBAUDIT")
	MARKETCode          = ServiceCode("MARKET")
	HBASECode           = ServiceCode("HBASE")
	ADBCode             = ServiceCode("ADB")
	MAXCOMPUTECode      = ServiceCode("MAXCOMPUTE")
	EDASCode            = ServiceCode("EDAS")
	CassandraCode       = ServiceCode("CASSANDRA")
)
View Source
const (
	NeimengEnv30 = Region("cn-neimeng-env30-d01")
	QingdaoEnv66 = Region("cn-qingdao-env66-d01")
	QingdaoEnv17 = Region("cn-qingdao-env17-d01")
	WulanEnv82   = Region("cn-wulan-env82-d01")
	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")
	HeYuan       = Region("cn-heyuan")
	WuLanChaBu   = Region("cn-wulanchabu")

	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")
)
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 AdbReserverUnSupportRegions = []Region{EUCentral1}
View Source
var CRNoSupportedRegions = []Region{Beijing, Hangzhou, Qingdao, Huhehaote, Zhangjiakou}
View Source
var DatahubSupportedRegions = []Region{Beijing, Hangzhou, Shanghai, Shenzhen, APSouthEast1}
View Source
var EcsSpotNoSupportedRegions = []Region{APSouth1}
View Source
var KmsSkippedRegions = []Region{}
View Source
var MongoDBMultiAzSupportedRegions = []Region{Hangzhou, Beijing, Shenzhen, EUCentral1}
View Source
var OssVersioningSupportedRegions = []Region{APSouth1}
View Source
var OtsCapacityNoSupportedRegions = []Region{APSouthEast1, USWest1, USEast1}
View Source
var ProviderVersion = "1.0.13"
View Source
var RdsMultiAzNoSupportedRegions = []Region{Qingdao, APNorthEast1, APSouthEast5, MEEast1}
View Source
var RouteTableNoSupportedRegions = []Region{Beijing, Hangzhou, Shenzhen}
View Source
var TerraformVersion = strings.TrimSuffix(schema.Provider{}.TerraformVersion, "-dev")

Functions

This section is empty.

Types

type AccountId

type AccountId struct {
	Data struct {
		PrimaryKey string `json:"primaryKey"`
	} `json:"data"`
}

type ApiVersion

type ApiVersion string

type ApsaraStackClient

type ApsaraStackClient struct {
	SourceIp        string
	SecureTransport string
	Region          Region
	RegionId        string
	Domain          string
	AccessKey       string
	SecretKey       string
	Department      string
	ResourceGroup   string
	Config          *Config

	//otsconn                      *ots.Client
	OtsInstanceName string
	// contains filtered or unexported fields
}

func (*ApsaraStackClient) AccountId

func (client *ApsaraStackClient) AccountId() (string, error)

func (*ApsaraStackClient) GetCallerIdentity

func (client *ApsaraStackClient) GetCallerIdentity() (string, error)

func (*ApsaraStackClient) NewCommonRequest

func (client *ApsaraStackClient) NewCommonRequest(product, serviceCode, schema string, apiVersion ApiVersion) (*requests.CommonRequest, error)

func (*ApsaraStackClient) WithAdbClient

func (client *ApsaraStackClient) WithAdbClient(do func(*adb.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithBssopenapiClient

func (client *ApsaraStackClient) WithBssopenapiClient(do func(*bssopenapi.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithCdnClient_new

func (client *ApsaraStackClient) WithCdnClient_new(do func(*cdn_new.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithCmsClient

func (client *ApsaraStackClient) WithCmsClient(do func(*cms.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithCrClient

func (client *ApsaraStackClient) WithCrClient(do func(*cr.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithCrEEClient

func (client *ApsaraStackClient) WithCrEEClient(do func(*cr_ee.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithCsClient

func (client *ApsaraStackClient) WithCsClient(do func(*cs.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithDdsClient

func (client *ApsaraStackClient) WithDdsClient(do func(*dds.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithDnsClient

func (client *ApsaraStackClient) WithDnsClient(do func(*alidns.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithEcsClient

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

func (*ApsaraStackClient) WithEdasClient added in v1.0.11

func (client *ApsaraStackClient) WithEdasClient(do func(*edas.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithElasticsearchClient

func (client *ApsaraStackClient) WithElasticsearchClient(do func(*elasticsearch.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithEssClient

func (client *ApsaraStackClient) WithEssClient(do func(*ess.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithFcClient

func (client *ApsaraStackClient) WithFcClient(do func(*fc.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithGpdbClient

func (client *ApsaraStackClient) WithGpdbClient(do func(*gpdb.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithHbaseClient

func (client *ApsaraStackClient) WithHbaseClient(do func(*hbase.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithKmsClient

func (client *ApsaraStackClient) WithKmsClient(do func(*kms.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithLogClient

func (client *ApsaraStackClient) WithLogClient(do func(*sls.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithLogPopClient

func (client *ApsaraStackClient) WithLogPopClient(do func(*slsPop.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithMaxComputeClient

func (client *ApsaraStackClient) WithMaxComputeClient(do func(*maxcompute.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithOnsClient

func (client *ApsaraStackClient) WithOnsClient(do func(*ons.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithOssBucketByName

func (client *ApsaraStackClient) WithOssBucketByName(bucketName string, do func(*oss.Bucket) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithOssClient

func (client *ApsaraStackClient) WithOssClient(do func(*oss.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithOssNewClient

func (client *ApsaraStackClient) WithOssNewClient(do func(*ecs.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithPolarDBClient

func (client *ApsaraStackClient) WithPolarDBClient(do func(*polardb.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithRamClient

func (client *ApsaraStackClient) WithRamClient(do func(*ram.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithRdsClient

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

func (*ApsaraStackClient) WithRkvClient

func (client *ApsaraStackClient) WithRkvClient(do func(*r_kvstore.Client) (interface{}, error)) (interface{}, error)

func (*ApsaraStackClient) WithSlbClient

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

func (*ApsaraStackClient) WithVpcClient

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

type Config

type Config struct {
	AccessKey                string
	SecretKey                string
	EcsRoleName              string
	Region                   Region
	RegionId                 string
	Department               string
	ResourceGroup            string
	SecurityToken            string
	OtsInstanceName          string
	AccountId                string
	Protocol                 string
	ClientReadTimeout        int
	ClientConnectTimeout     int
	SourceIp                 string
	SecureTransport          string
	ResourceSetName          string
	RamRoleArn               string
	RamRoleSessionName       string
	RamRolePolicy            string
	RamRoleSessionExpiration int
	OrganizationAccessKey    string
	OrganizationSecretKey    string
	SLSOpenAPIEndpoint       string
	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
	AscmEndpoint             string
	LogEndpoint              string
	DrdsEndpoint             string
	DdsEndpoint              string
	GpdbEndpoint             string
	KVStoreEndpoint          string
	PolarDBEndpoint          string
	FcEndpoint               string
	ApigatewayEndpoint       string
	DatahubEndpoint          string
	MnsEndpoint              string
	LocationEndpoint         string
	ElasticsearchEndpoint    string
	NasEndpoint              string
	BssOpenApiEndpoint       string
	DdoscooEndpoint          string
	DdosbgpEndpoint          string
	SagEndpoint              string
	EmrEndpoint              string
	CasEndpoint              string
	MarketEndpoint           string
	HBaseEndpoint            string
	AdbEndpoint              string
	MaxComputeEndpoint       string

	EdasEndpoint            string
	SkipRegionValidation    bool
	ConfigurationSource     string
	CbnEndpoint             string
	DmsEnterpriseEndpoint   string
	WafOpenapiEndpoint      string
	ResourcemanagerEndpoint string
	BssopenapiEndpoint      string
	AlidnsEndpoint          string
	CassandraEndpoint       string
	EciEndpoint             string
	OosEndpoint             string
	DcdnEndpoint            string
	MseEndpoint             string
	ActiontrailEndpoint     string
	Insecure                bool
	Proxy                   string
	Domain                  string
}

Config of apsarastack

func (*Config) Client

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

Client for ApsaraStackClient

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"`
}

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

ServiceCode 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