Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + var DefaultUserAgent = fmt.Sprintf("AlibabaCloud (%s; %s) Golang/%s Core/%s", runtime.GOOS, runtime.GOARCH, ...) + var Version = "0.0.1" + func Timeout(connectTimeout time.Duration) func(cxt context.Context, net, addr string) (c net.Conn, err error) + func TransToString(object interface{}) string + type Client struct + Domain string + EndpointMap map[string]string + EndpointType string + Network string + func NewClient() (client *Client, err error) + func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) + func NewClientWithBearerToken(regionId, bearerToken string) (client *Client, err error) + func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) + func NewClientWithOptions(regionId string, config *Config, credential auth.Credential) (client *Client, err error) + func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) + func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) + func NewClientWithRamRoleArnAndPolicy(regionId string, ...) (client *Client, err error) + func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) + func NewClientWithStsRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) + func NewClientWithStsRoleNameOnEcs(regionId string, roleName string) (client *Client, err error) + func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) + func (client *Client) AddAsyncTask(task func()) (err error) + func (client *Client) AppendUserAgent(key, value string) + func (client *Client) BuildRequestWithSigner(request requests.AcsRequest, signer auth.Signer) (err error) + func (client *Client) CloseLogger() + func (client *Client) DoAction(request requests.AcsRequest, response responses.AcsResponse) (err error) + func (client *Client) DoActionWithSigner(request requests.AcsRequest, response responses.AcsResponse, ...) (err error) + func (client *Client) EnableAsync(routinePoolSize, maxTaskQueueSize int) + func (client *Client) GetActionResponse(request requests.AcsRequest) (*http.Response, error) + func (client *Client) GetConfig() *Config + func (client *Client) GetConnectTimeout() time.Duration + func (client *Client) GetEndpointRules(regionId string, product string) (endpointRaw string, err error) + func (client *Client) GetHTTPSInsecure() bool + func (client *Client) GetHttpProxy() string + func (client *Client) GetHttpsProxy() string + func (client *Client) GetLogger() *Logger + func (client *Client) GetLoggerMsg() string + func (client *Client) GetNoProxy() string + func (client *Client) GetReadTimeout() time.Duration + func (client *Client) GetSigner() auth.Signer + func (client *Client) GetTemplate() string + func (client *Client) Init() (err error) + func (client *Client) InitClientConfig() (config *Config) + func (client *Client) InitWithAccessKey(regionId, accessKeyId, accessKeySecret string) (err error) + func (client *Client) InitWithBearerToken(regionId, bearerToken string) (err error) + func (client *Client) InitWithEcsRamRole(regionId, roleName string) (err error) + func (client *Client) InitWithOptions(regionId string, config *Config, credential auth.Credential) (err error) + func (client *Client) InitWithProviderChain(regionId string, provider provider.Provider) (err error) + func (client *Client) InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (err error) + func (client *Client) InitWithRamRoleArnAndPolicy(...) (err error) + func (client *Client) InitWithRsaKeyPair(regionId, publicKeyId, privateKey string, sessionExpiration int) (err error) + func (client *Client) InitWithStsToken(regionId, accessKeyId, accessKeySecret, securityToken string) (err error) + func (client *Client) OpenLogger() + func (client *Client) ProcessCommonRequest(request *requests.CommonRequest) (response *responses.CommonResponse, err error) + func (client *Client) ProcessCommonRequestWithSigner(request *requests.CommonRequest, signerInterface interface{}) (response *responses.CommonResponse, err error) + func (client *Client) SetConnectTimeout(connectTimeout time.Duration) + func (client *Client) SetEndpointRules(endpointMap map[string]string, endpointType string, netWork string) + func (client *Client) SetHTTPSInsecure(isInsecure bool) + func (client *Client) SetHttpProxy(httpProxy string) + func (client *Client) SetHttpsProxy(httpsProxy string) + func (client *Client) SetLogger(level string, channel string, out io.Writer, template string) + func (client *Client) SetNoProxy(noProxy string) + func (client *Client) SetReadTimeout(readTimeout time.Duration) + func (client *Client) SetSigner(signer auth.Signer) + func (client *Client) SetTemplate(template string) + func (client *Client) SetTransport(transport http.RoundTripper) + func (client *Client) Shutdown() + type Config struct + AutoRetry bool + Debug bool + EnableAsync bool + GoRoutinePoolSize int + HttpTransport *http.Transport + MaxRetryTime int + MaxTaskQueueSize int + Scheme string + Timeout time.Duration + Transport http.RoundTripper + UserAgent string + func NewConfig() (config *Config) + func (c *Config) WithAutoRetry(isAutoRetry bool) *Config + func (c *Config) WithDebug(isDebug bool) *Config + func (c *Config) WithEnableAsync(isEnableAsync bool) *Config + func (c *Config) WithGoRoutinePoolSize(goRoutinePoolSize int) *Config + func (c *Config) WithHttpTransport(httpTransport *http.Transport) *Config + func (c *Config) WithMaxRetryTime(maxRetryTime int) *Config + func (c *Config) WithMaxTaskQueueSize(maxTaskQueueSize int) *Config + func (c *Config) WithScheme(scheme string) *Config + func (c *Config) WithTimeout(timeout time.Duration) *Config + func (c *Config) WithUserAgent(userAgent string) *Config + type Logger struct + type RemoteActionRequest struct + ActionName string + ClusterName string + FormParams map[string]string + Headers map[string]string + LocationEndpointType string + LocationServiceCode string + Product string + QueryParams map[string]string + Version string + func NewRemoteActionRequest(acsReq requests.AcsRequest) (*RemoteActionRequest, error)