...

Package service

import "github.com/alibabacloud-go/openapi-util/service"
Overview
Index

Overview ▾

This file is auto-generated, don't edit it. Thanks. *

  • This is for OpenApi Util

Constants

const (
    PEM_BEGIN = "-----BEGIN RSA PRIVATE KEY-----\n"
    PEM_END   = "\n-----END RSA PRIVATE KEY-----"
)

func ArrayToStringWithSpecifiedStyle

func ArrayToStringWithSpecifiedStyle(array interface{}, prefix *string, style *string) (_result *string)

*

func Convert

func Convert(body interface{}, content interface{})

*

func GetAuthorization

func GetAuthorization(request *tea.Request, signatureAlgorithm, payload, acesskey, secret *string) *string

func GetEncodeParam

func GetEncodeParam(param *string) *string

func GetEncodePath

func GetEncodePath(path *string) *string

func GetEndpoint

func GetEndpoint(endpoint *string, server *bool, endpointType *string) *string

func GetROASignature

func GetROASignature(stringToSign *string, secret *string) (_result *string)

*

func GetRPCSignature

func GetRPCSignature(signedParams map[string]*string, method *string, secret *string) (_result *string)

*

func GetStringToSign

func GetStringToSign(request *tea.Request) (_result *string)

*

func GetTimestamp

func GetTimestamp() (_result *string)

*

func Hash

func Hash(raw []byte, signatureAlgorithm *string) []byte

func HexEncode

func HexEncode(raw []byte) *string

func ParseToMap

func ParseToMap(in interface{}) map[string]interface{}

func Query

func Query(filter interface{}) (_result map[string]*string)

*

func SignatureMethod

func SignatureMethod(secret, source, signatureAlgorithm string) []byte

func ToForm

func ToForm(filter map[string]interface{}) (_result *string)

*

type Sorter

type Sorter struct {
    Keys []string
    Vals []string
}

func (*Sorter) Len

func (hs *Sorter) Len() int

Len is an additional function for function SignHeader.

func (*Sorter) Less

func (hs *Sorter) Less(i, j int) bool

Less is an additional function for function SignHeader.

func (*Sorter) Sort

func (hs *Sorter) Sort()

Sort is an additional function for function SignHeader.

func (*Sorter) Swap

func (hs *Sorter) Swap(i, j int)

Swap is an additional function for function SignHeader.