Documentation ¶
Index ¶
- Constants
- Variables
- func FormatHeaders(headers http.Header, seperator string) string
- func GetServiceDerivedCatalogKeys(mainKey string) []string
- func GetServiceEndpoint(c *HcsConfig, srv, region string) string
- func NewHcClient(c *HcsConfig, region, product string, globalFlag bool) (*core.HcHttpClient, error)
- func RedactHeaders(headers http.Header) (processedHeaders []string)
- type Config
- type HcsConfig
- func (c *HcsConfig) AadV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) AntiDDosV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) AomV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) AosV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ApiGatewayV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ApigV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) AutoscalingV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) BcsV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) BlockStorageV21Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) BlockStorageV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) BmsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) BssV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) BssV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CbrV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CceAddonV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CceV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CceV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CciV1BetaClient(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CciV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CdmV11Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CdnV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CesV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CesV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CloudStreamV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CloudtableV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ComputeV11Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ComputeV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ComputeV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CsbsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CseV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CssV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) CtsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DataArtsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DataGetEnterpriseProjectID(d *schema.ResourceData) string
- func (c *HcsConfig) DcV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DcsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DcsV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DdsV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DisV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DisV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DliV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DliV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DmsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DmsV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DnsV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DnsWithRegionClient(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DrsV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DwsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) DwsV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ElbV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ElbV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) EnterpriseProjectClient(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ErV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) FgsV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) FwV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) GaussdbV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) GeminiDBV31Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) GeminiDBV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) GesV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) GetEnterpriseProjectID(d *schema.ResourceData) string
- func (c *HcsConfig) GetProjectID(region string) string
- func (c *HcsConfig) GetRegion(d *schema.ResourceData) string
- func (c *HcsConfig) HcAomV2Client(region string) (*aomv2.AomClient, error)
- func (c *HcsConfig) HcCdnV1Client(region string) (*cdnv1.CdnClient, error)
- func (c *HcsConfig) HcCptsV1Client(region string) (*cptsv1.CptsClient, error)
- func (c *HcsConfig) HcCssV1Client(region string) (*cssv1.CssClient, error)
- func (c *HcsConfig) HcCssV2Client(region string) (*cssv2.CssClient, error)
- func (c *HcsConfig) HcCtsV3Client(region string) (*ctsv3.CtsClient, error)
- func (c *HcsConfig) HcDmsV2Client(region string) (*dmsv2.KafkaClient, error)
- func (c *HcsConfig) HcHssV5Client(region string) (*hssv5.HssClient, error)
- func (c *HcsConfig) HcIamV3Client(region string) (*iamv3.IamClient, error)
- func (c *HcsConfig) HcIoTdaV5Client(region string) (*iotdav5.IoTDAClient, error)
- func (c *HcsConfig) HcKmsV3Client(region string) (*kpsv3.KpsClient, error)
- func (c *HcsConfig) HcLiveV1Client(region string) (*livev1.LiveClient, error)
- func (c *HcsConfig) HcMpcV1Client(region string) (*mpcv1.MpcClient, error)
- func (c *HcsConfig) HcOmsV2Client(region string) (*omsv2.OmsClient, error)
- func (c *HcsConfig) HcRdsV3Client(region string) (*rdsv3.RdsClient, error)
- func (c *HcsConfig) HcTmsV1Client(region string) (*tmsv1.TmsClient, error)
- func (c *HcsConfig) HcVodV1Client(region string) (*vodv1.VodClient, error)
- func (c *HcsConfig) HcVpcV3Client(region string) (*vpcv3.VpcClient, error)
- func (c *HcsConfig) IAMNoVersionClient(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) IAMV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) IECV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) IdentityV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ImageV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ImageV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) KmsKeyV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) KmsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) KmsV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) LoadAndValidate() error
- func (c *HcsConfig) LoadBalancerClient(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) LtsV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) MaasV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) MlsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ModelArtsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ModelArtsV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) MrsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) MrsV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) NatGatewayClient(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) NatV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) NetworkingV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) NetworkingV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) NetworkingV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) NewServiceClient(srv, region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ObjectStorageClient(region string) (*obs.ObsClient, error)
- func (c *HcsConfig) ObjectStorageClientWithSignature(region string) (*obs.ObsClient, error)
- func (c *HcsConfig) OpenGaussV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) RdsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) RdsV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) RmsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ScmV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) SdrsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ServiceStageV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) ServiceStageV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) SfsV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) SfsV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) SmnV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) SmnV2TagClient(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) SmsV3Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) SwrV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) VPCEPClient(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) VbsV2Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) WafDedicatedV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) WafV1Client(region string) (*golangsdk.ServiceClient, error)
- func (c *HcsConfig) WorkspaceV2Client(region string) (*golangsdk.ServiceClient, error)
- type LogRoundTripper
- type Profile
- type ServiceCatalog
- type SharedConfig
Constants ¶
const MAXFieldLength int = 1024
MAXFieldLength is the maximum string length of single field when logging
Variables ¶
var MutexKV = mutexkv.NewMutexKV()
MutexKV is a global lock on all resources, it can lock the specified shared string (such as resource ID, resource Name, port, etc.) to prevent other resources from using it, for concurrency control. Usage: MutexKV.Lock({resource ID}) and MutexKV.Unlock({resource ID})
Functions ¶
func FormatHeaders ¶
FormatHeaders processes a headers object plus a deliminator, returning a string
func GetServiceDerivedCatalogKeys ¶
GetServiceDerivedCatalogKeys returns the derived catalog keys of a service.
func GetServiceEndpoint ¶
GetServiceEndpoint try to get the endpoint from customizing map
func NewHcClient ¶
NewHcClient is the common client using huaweicloudstack-sdk-go-v3 package
func RedactHeaders ¶
RedactHeaders processes a headers object, returning a redacted list.
Types ¶
type Config ¶
type Config = huaweiConfig.Config
type HcsConfig ¶
type HcsConfig struct { Config HcsHwClient *golangsdk.ProviderClient HcsDomainClient *golangsdk.ProviderClient }
func GetHcsConfig ¶
func GetHcsConfig(meta interface{}) *HcsConfig
func (*HcsConfig) AadV1Client ¶
func (*HcsConfig) AntiDDosV1Client ¶
********** client for Security **********
func (*HcsConfig) AomV1Client ¶
func (*HcsConfig) AosV1Client ¶
func (*HcsConfig) ApiGatewayV1Client ¶
********** client for Application **********
func (*HcsConfig) ApigV2Client ¶
func (*HcsConfig) AutoscalingV1Client ¶
func (*HcsConfig) BcsV2Client ¶
func (*HcsConfig) BlockStorageV21Client ¶
********** client for Storage **********
func (*HcsConfig) BlockStorageV2Client ¶
func (*HcsConfig) BmsV1Client ¶
func (*HcsConfig) BssV1Client ¶
********** client for Others **********
func (*HcsConfig) BssV2Client ¶
func (*HcsConfig) CbrV3Client ¶
func (*HcsConfig) CceAddonV3Client ¶
func (*HcsConfig) CceV1Client ¶
func (*HcsConfig) CceV3Client ¶
func (*HcsConfig) CciV1BetaClient ¶
func (*HcsConfig) CciV1Client ¶
func (*HcsConfig) CdmV11Client ¶
func (*HcsConfig) CdnV1Client ¶
func (*HcsConfig) CesV1Client ¶
func (*HcsConfig) CesV2Client ¶
func (*HcsConfig) CloudStreamV1Client ¶
func (*HcsConfig) CloudtableV2Client ¶
func (*HcsConfig) ComputeV11Client ¶
func (*HcsConfig) ComputeV1Client ¶
********** client for Compute **********
func (*HcsConfig) ComputeV2Client ¶
func (*HcsConfig) CsbsV1Client ¶
func (*HcsConfig) CseV2Client ¶
func (*HcsConfig) CssV1Client ¶
func (*HcsConfig) CtsV1Client ¶
********** client for Management **********
func (*HcsConfig) DataArtsV1Client ¶
func (*HcsConfig) DataGetEnterpriseProjectID ¶
func (c *HcsConfig) DataGetEnterpriseProjectID(d *schema.ResourceData) string
DataGetEnterpriseProjectID returns the enterprise_project_id that was specified in the data source. If it was not set, the provider-level value is checked. The provider-level value can either be set by the `enterprise_project_id` argument or by HCS_ENTERPRISE_PROJECT_ID. If the provider-level value is also not set, `all_granted_eps` will be returned.
func (*HcsConfig) DcV3Client ¶
func (*HcsConfig) DcsV1Client ¶
func (*HcsConfig) DcsV2Client ¶
func (*HcsConfig) DdsV3Client ¶
func (*HcsConfig) DisV2Client ¶
func (*HcsConfig) DisV3Client ¶
func (*HcsConfig) DliV1Client ¶
func (*HcsConfig) DliV2Client ¶
func (*HcsConfig) DmsV1Client ¶
func (*HcsConfig) DmsV2Client ¶
func (*HcsConfig) DnsV2Client ¶
func (*HcsConfig) DnsWithRegionClient ¶
func (*HcsConfig) DrsV3Client ¶
func (*HcsConfig) DwsV1Client ¶
func (*HcsConfig) DwsV2Client ¶
func (*HcsConfig) ElbV2Client ¶
ElbV2Client is the client for elb v2.0 (openstack) api
func (*HcsConfig) ElbV3Client ¶
ElbV3Client is the client for elb v3 api
func (*HcsConfig) EnterpriseProjectClient ¶
func (*HcsConfig) ErV3Client ¶
func (*HcsConfig) FgsV2Client ¶
func (*HcsConfig) FwV2Client ¶
func (*HcsConfig) GaussdbV3Client ¶
func (*HcsConfig) GeminiDBV31Client ¶
func (*HcsConfig) GeminiDBV3Client ¶
func (*HcsConfig) GesV1Client ¶
func (*HcsConfig) GetEnterpriseProjectID ¶
func (c *HcsConfig) GetEnterpriseProjectID(d *schema.ResourceData) string
GetEnterpriseProjectID returns the enterprise_project_id that was specified in the resource. If it was not set, the provider-level value is checked. The provider-level value can either be set by the `enterprise_project_id` argument or by HCS_ENTERPRISE_PROJECT_ID.
func (*HcsConfig) GetProjectID ¶
GetProjectID is used to get the project ID for services
func (*HcsConfig) GetRegion ¶
func (c *HcsConfig) GetRegion(d *schema.ResourceData) string
GetRegion returns the region that was specified in the resource. If a region was not set, the provider-level region is checked. The provider-level region can either be set by the region argument or by HCS_REGION_NAME.
func (*HcsConfig) HcAomV2Client ¶
HcAomV2Client is the AOM service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcCdnV1Client ¶
HcCdnV1Client is the CDN service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcCptsV1Client ¶
func (c *HcsConfig) HcCptsV1Client(region string) (*cptsv1.CptsClient, error)
HcCptsV1Client is the CPTS service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcCssV1Client ¶
HcCssV1Client is the css service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcCssV2Client ¶
HcCssV2Client is the css service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcCtsV3Client ¶
HcCtsV3Client is the CTS service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcDmsV2Client ¶
func (c *HcsConfig) HcDmsV2Client(region string) (*dmsv2.KafkaClient, error)
HcDmsV2Client is the DMS service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcHssV5Client ¶
HcHssV5Client is the HSS service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcIamV3Client ¶
HcIamV3Client is the IAM service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcIoTdaV5Client ¶
func (c *HcsConfig) HcIoTdaV5Client(region string) (*iotdav5.IoTDAClient, error)
HcIoTdaV5Client is the live service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcKmsV3Client ¶
HcKmsV3Client is the KMS service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcLiveV1Client ¶
func (c *HcsConfig) HcLiveV1Client(region string) (*livev1.LiveClient, error)
HcLiveV1Client is the live service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcMpcV1Client ¶
HcMpcV1Client is the MPC service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcOmsV2Client ¶
HcMpcV1Client is the MPC service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcRdsV3Client ¶
HcRdsV3Client is the RDS service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcTmsV1Client ¶
HcTmsV1Client is the TMS service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcVodV1Client ¶
HcVodV1Client is the AOM service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) HcVpcV3Client ¶
HcVpcV3Client is the VPC service client using huaweicloudstack-sdk-go-v3 package
func (*HcsConfig) IAMNoVersionClient ¶
func (*HcsConfig) IAMV3Client ¶
********** client for Global Service **********
func (*HcsConfig) IECV1Client ¶
IECV1Client returns a ServiceClient for IEC Endpoint APIs
func (*HcsConfig) IdentityV3Client ¶
func (*HcsConfig) ImageV1Client ¶
func (*HcsConfig) ImageV2Client ¶
func (*HcsConfig) KmsKeyV1Client ¶
func (*HcsConfig) KmsV1Client ¶
func (*HcsConfig) KmsV3Client ¶
func (*HcsConfig) LoadAndValidate ¶
func (*HcsConfig) LoadBalancerClient ¶
LoadBalancerClient is the client for elb v2 api
func (*HcsConfig) LtsV2Client ¶
func (*HcsConfig) MaasV1Client ¶
func (*HcsConfig) MlsV1Client ¶
MlsV1Client has the endpoint: https://mls.{{region}}/{{cloud}}/v1.0/{{project_id}}
func (*HcsConfig) ModelArtsV1Client ¶
func (*HcsConfig) ModelArtsV2Client ¶
func (*HcsConfig) MrsV1Client ¶
********** client for Enterprise Intelligence **********
func (*HcsConfig) MrsV2Client ¶
func (*HcsConfig) NatGatewayClient ¶
func (*HcsConfig) NatV2Client ¶
NatV2Client has the endpoint: https://nat.{{region}}/{{cloud}}/v2.0/
func (*HcsConfig) NetworkingV1Client ¶
********** client for Network **********
func (*HcsConfig) NetworkingV2Client ¶
NetworkingV2Client returns a ServiceClient for neutron APIs the endpoint likes: https://vpc.{region}.myhuaweicloud.com/v2.0/
func (*HcsConfig) NetworkingV3Client ¶
func (*HcsConfig) NewServiceClient ¶
NewServiceClient create a ServiceClient which was assembled from ServiceCatalog. If you want to add new ServiceClient, please make sure the catalog was already in allServiceCatalog. the endpoint likes https://{Name}.{Region}.myhuaweicloud.com/{Version}/{project_id}/{ResourceBase}
func (*HcsConfig) ObjectStorageClient ¶
func (*HcsConfig) ObjectStorageClientWithSignature ¶
func (*HcsConfig) OpenGaussV3Client ¶
func (*HcsConfig) RdsV1Client ¶
********** client for Database **********
func (*HcsConfig) RdsV3Client ¶
func (*HcsConfig) RmsV1Client ¶
func (*HcsConfig) ScmV3Client ¶
func (*HcsConfig) SdrsV1Client ¶
func (*HcsConfig) ServiceStageV1Client ¶
func (*HcsConfig) ServiceStageV2Client ¶
func (*HcsConfig) SfsV1Client ¶
func (*HcsConfig) SfsV2Client ¶
func (*HcsConfig) SmnV2Client ¶
func (*HcsConfig) SmnV2TagClient ¶
func (*HcsConfig) SmsV3Client ¶
func (*HcsConfig) SwrV2Client ¶
func (*HcsConfig) VPCEPClient ¶
VPCEPClient returns a ServiceClient for VPC Endpoint APIs the endpoint likes: https://vpcep.{region}.myhuaweicloud.com/v1/{project_id}/
func (*HcsConfig) VbsV2Client ¶
func (*HcsConfig) WafDedicatedV1Client ¶
func (*HcsConfig) WafV1Client ¶
WafV1Client is not avaliable in HuaweiCloudStack, will be imported by other clouds
func (*HcsConfig) WorkspaceV2Client ¶
type LogRoundTripper ¶
type LogRoundTripper struct { Rt http.RoundTripper MaxRetries int }
LogRoundTripper satisfies the http.RoundTripper interface and is used to customize the default http client RoundTripper to allow for logging.
type Profile ¶
type Profile struct { Name string `json:"name"` Mode string `json:"mode"` AccessKeyId string `json:"accessKeyId"` SecretAccessKey string `json:"secretAccessKey"` SecurityToken string `json:"securityToken"` Region string `json:"region"` ProjectId string `json:"projectId"` DomainId string `json:"domainId"` AgencyDomainId string `json:"agencyDomainId"` AgencyDomainName string `json:"agencyDomainName"` AgencyName string `json:"agencyName"` }
type ServiceCatalog ¶
type ServiceCatalog struct { Name string Version string Scope string Admin bool ResourceBase string WithOutProjectID bool Product string }
ServiceCatalog defines a struct which was used to generate a service client for huaweicloudstack. the endpoint likes https://{Name}.{Region}.myhuaweicloud.com/{Version}/{project_id}/{ResourceBase} For more information, please refer to Config.NewServiceClient
func GetServiceCatalog ¶
func GetServiceCatalog(service string) *ServiceCatalog
GetServiceCatalog returns the catalog object of a service