huaweicloud-sdk-go-v3
huaweicloud-sdk-go-v3 copied to clipboard
需求和问题描述: 使用NewEcsClient创建ecs,然后调用ListServerGroupsInvoker,这里使用了retry功能。然后发现无论成功失败都retry了一定次数。 客户端创建代码增加了RequestHandler,ResponseHandler。 ```go func RequestHandler(request http.Request) { fmt.Println(request) } func ResponseHandler(response http.Response) { fmt.Println(response) } WithHttpHandler(httphandler. NewHttpHandler(). AddRequestHandler(RequestHandler). AddResponseHandler(ResponseHandler))) ``` ```go response, err := client.ListServerGroupsInvoker(&model.ListServerGroupsRequest{ Limit: &limit, }).WithRetry(5, func(i...
when I integrate the current viersion into go 1.18.3 project, encounter new errors at here: func (c *EcsClient) NovaShowServer(request *model.NovaShowServerRequest) (*model.NovaShowServerResponse, error) { requestDef := GenReqDefForNovaShowServer() if resp, err :=...
Hello I have a program that requires huaweicloud-sdk-go-v3 (latest version; 0.0.89) for mainly management of ECS instances. when the program is built with go1.16 there's no problem, but when built...
Hi, developer. The method of each client is not be abstracted into interface, so that we can not use `mockgen` to generate mock code. Now, for unit test, I have...
https://github.com/huaweicloud/huaweicloud-sdk-go-v3/blob/4409ff4c1e62264a05a411652afc3b5febe4d370/core/hc_http_client.go#L230 
比如这个接口getAvailabilityZonesList 需要x-auth-token,为什么目前框架不支持添加x-auth-token呢
能否在[core/config/http_config.go](https://github.com/huaweicloud/huaweicloud-sdk-go-v3/blob/15f3c0cafeec5e1a87e64f7979db5e150b49d60e/core/config/http_config.go#L36)中的HttpConfig结构体中增加字段以便用户使用自定义的http.Transport? ``` type HttpConfig struct { DialContext DialContext Timeout time.Duration Retries int HttpProxy *Proxy IgnoreSSLVerification bool HttpHandler *httphandler.HttpHandler **HttpTransport *http.Transport //新增字段** } ```
When will the sfs2 interface be supported?
你这个指向切片的指针干啥没搞懂 我获取到这个指针没法遍历了。不应该是切片里面放的结构体指针么