Documentation ¶
Overview ¶
This file is auto-generated, don't edit it. Thanks. *
- This is for OpenApi Util
Index ¶
- Constants
- func ArrayToStringWithSpecifiedStyle(array interface{}, prefix *string, style *string) (_result *string)
- func Convert(body interface{}, content interface{})
- func GetAuthorization(request *tea.Request, signatureAlgorithm, payload, acesskey, secret *string) *string
- func GetEncodeParam(param *string) *string
- func GetEncodePath(path *string) *string
- func GetEndpoint(endpoint *string, server *bool, endpointType *string) *string
- func GetROASignature(stringToSign *string, secret *string) (_result *string)
- func GetRPCSignature(signedParams map[string]*string, method *string, secret *string) (_result *string)
- func GetStringToSign(request *tea.Request) (_result *string)
- func GetThrottlingTimeLeft(headers map[string]*string) (_result *int64)
- func GetTimestamp() (_result *string)
- func Hash(raw []byte, signatureAlgorithm *string) []byte
- func HexEncode(raw []byte) *string
- func ParseToMap(in interface{}) map[string]interface{}
- func Query(filter interface{}) (_result map[string]*string)
- func SignatureMethod(secret, source, signatureAlgorithm string) []byte
- func ToForm(filter map[string]interface{}) (_result *string)
- type Sorter
Constants ¶
View Source
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)
*
- Parse array into a string with specified style
- @param array the array
- @param prefix the prefix string
- @style specified style e.g. repeatList
- @return the string
func Convert ¶
func Convert(body interface{}, content interface{})
*
- 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 GetEncodeParam ¶
func GetEncodePath ¶
func GetROASignature ¶
*
- 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)
*
- 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 ¶
*
- Get the string to be signed according to request
- @param request which contains signed messages
- @return the signed string
func GetThrottlingTimeLeft ¶ added in v0.1.1
*
- Get throttling param
- @param the response headers
- @return time left
func GetTimestamp ¶
func GetTimestamp() (_result *string)
*
- Get timestamp
- @return the timestamp string
func ParseToMap ¶
func ParseToMap(in interface{}) map[string]interface{}
func Query ¶
*
- Parse filter into a object which's type is map[string]string
- @param filter query param
- @return the object
func SignatureMethod ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.