Documentation
¶
Overview ¶
This file is auto-generated, don't edit it. Thanks.
Index ¶
- Constants
- func ArrayToStringWithSpecifiedStyle(array interface{}, prefix *string, style *string) (_result *string)
- func Convert(body interface{}, content interface{})
- func GetAuthorization(request *dara.Request, signatureAlgorithm *string, payload *string, ...) (_result *string)
- func GetDateUTCString() (_result *string)
- func GetEndpoint(endpoint *string, server *bool, endpointType *string) *string
- func GetEndpointRules(product, regionId, endpointType, network, suffix *string) (_result *string, _err error)
- func GetNonce() (_result *string)
- func GetROASignature(stringToSign *string, secret *string) (_result *string)
- func GetRPCSignature(signedParams map[string]*string, method *string, secret *string) (_result *string)
- func GetStringToSign(request *dara.Request) (_result *string)
- func GetThrottlingTimeLeft(headers map[string]*string) (_result *int64)
- func GetTimestamp() (_result *string)
- func GetUserAgent(userAgent *string) (_result *string)
- func Hash(raw []byte, signatureAlgorithm *string) (_result []byte)
- func ParseToMap(in interface{}) map[string]interface{}
- func Query(filter interface{}) (_result map[string]*string)
- func SignatureMethod(secret, source, signatureAlgorithm string) []byte
- func StringifyMapValue(a map[string]interface{}) map[string]*string
- func ToArray(in interface{}) []map[string]interface{}
- func ToForm(filter map[string]interface{}) (_result *string)
- type Config
- type GlobalParameters
- type OpenApiRequest
- type Params
- type Sorter
Constants ¶
const ( PEM_BEGIN = "-----BEGIN RSA PRIVATE KEY-----\n" PEM_END = "\n-----END RSA PRIVATE KEY-----" )
Variables ¶
This section is empty.
Functions ¶
func ArrayToStringWithSpecifiedStyle ¶
func ArrayToStringWithSpecifiedStyle(array interface{}, prefix *string, style *string) (_result *string)
Description:
Parse array into a string with specified style ¶
@param array - the array
@param prefix - the prefix string
@return the string
func Convert ¶
func Convert(body interface{}, content interface{})
Description:
Convert all params of body other than type of readable into content ¶
@param body - source Model
@param content - target Model
@return void
func GetAuthorization ¶
func GetAuthorization(request *dara.Request, signatureAlgorithm *string, payload *string, accessKey *string, accessKeySecret *string) (_result *string)
Description:
Get the authorization ¶
@param request - request params
@param signatureAlgorithm - the autograph method
@param payload - the hashed request
@param accessKey - the accessKey string
@param accessKeySecret - the accessKeySecret string
@return authorization string
func GetDateUTCString ¶
func GetDateUTCString() (_result *string)
Description:
Get UTC string ¶
@return the UTC string
func GetEndpoint ¶ added in v2.1.1
func GetEndpointRules ¶
func GetNonce ¶
func GetNonce() (_result *string)
Description:
Generate a nonce string ¶
@return the nonce string
func GetROASignature ¶
Description:
Get signature according to stringToSign, secret ¶
@param stringToSign - the signed string
@param secret - accesskey secret
@return the signature
func GetRPCSignature ¶
func GetRPCSignature(signedParams map[string]*string, method *string, secret *string) (_result *string)
Description:
Get signature according to signedParams, method and secret ¶
@param signedParams - params which need to be signed
@param method - http method e.g. GET
@param secret - AccessKeySecret
@return the signature
func GetStringToSign ¶
Description:
Get the string to be signed according to request ¶
@param request - which contains signed messages
@return the signed string
func GetThrottlingTimeLeft ¶
Description:
Get throttling param ¶
@param the - response headers
@return time left
func GetTimestamp ¶
func GetTimestamp() (_result *string)
Description:
Get timestamp ¶
@return the timestamp string
func GetUserAgent ¶
func Hash ¶
Description:
Hash the raw data with signatureAlgorithm ¶
@param raw - hashing data
@param signatureAlgorithm - the autograph method
@return hashed bytes
func ParseToMap ¶
func ParseToMap(in interface{}) map[string]interface{}
func Query ¶
Description:
Parse filter into a object which's type is map[string]string
@param filter - query param
@return the object
func SignatureMethod ¶
func StringifyMapValue ¶ added in v2.1.4
Types ¶
type GlobalParameters ¶
type GlobalParameters = models.GlobalParameters
type OpenApiRequest ¶
type OpenApiRequest = models.OpenApiRequest