client

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 23 Imported by: 3

Documentation

Overview

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

Index

Constants

View Source
const (
	SDK_NAME    = "kms-gcs-go-sdk-version"
	SDK_VERSION = "0.5.1"
)

Variables

This section is empty.

Functions

func ConvertToMap

func ConvertToMap(body interface{}) (_result map[string]interface{})

func DefaultBoolean added in v0.4.0

func DefaultBoolean(bool1 *bool, bool2 *bool) (_result *bool)

func GetCaCertFromFile added in v0.4.0

func GetCaCertFromFile(reqBody *string) (_result *string, _err error)

func GetCanonicalizedHeaders added in v0.4.0

func GetCanonicalizedHeaders(headers map[string]*string) (_result *string, _err error)

func GetCanonicalizedResource added in v0.4.0

func GetCanonicalizedResource(pathname *string, query map[string]*string) (_result *string, _err error)

func GetContentLength

func GetContentLength(reqBody []byte) (_result *string, _err error)

func GetErrMessage

func GetErrMessage(msg []byte) (_result map[string]interface{}, _err error)

func GetPrivatePemFromPk12 added in v0.4.0

func GetPrivatePemFromPk12(privateKeyData []byte, password *string) (_result []*string, _err error)

func GetSerializedAdvanceDecryptRequest added in v0.3.0

func GetSerializedAdvanceDecryptRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedAdvanceEncryptRequest added in v0.3.0

func GetSerializedAdvanceEncryptRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedAdvanceGenerateDataKeyPairRequest added in v0.5.0

func GetSerializedAdvanceGenerateDataKeyPairRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedAdvanceGenerateDataKeyPairWithoutPlaintextRequest added in v0.5.0

func GetSerializedAdvanceGenerateDataKeyPairWithoutPlaintextRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedAdvanceGenerateDataKeyRequest added in v0.3.0

func GetSerializedAdvanceGenerateDataKeyRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedDecryptRequest

func GetSerializedDecryptRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedEncryptRequest

func GetSerializedEncryptRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedGenerateDataKeyPairRequest added in v0.5.0

func GetSerializedGenerateDataKeyPairRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedGenerateDataKeyPairWithoutPlaintextRequest added in v0.5.0

func GetSerializedGenerateDataKeyPairWithoutPlaintextRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedGenerateDataKeyRequest

func GetSerializedGenerateDataKeyRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedGenerateRandomRequest

func GetSerializedGenerateRandomRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedGetPublicKeyRequest

func GetSerializedGetPublicKeyRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedGetSecretValueRequest added in v0.2.1

func GetSerializedGetSecretValueRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedSignRequest

func GetSerializedSignRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetSerializedVerifyRequest

func GetSerializedVerifyRequest(reqBody map[string]interface{}) (_result []byte, _err error)

func GetStringToSign

func GetStringToSign(method *string, pathname *string, headers map[string]*string, query map[string]*string) (_result *string, _err error)

func GetUserAgent added in v0.5.1

func GetUserAgent(userAgent *string) *string

func IsRetryErr added in v0.4.1

func IsRetryErr(err *tea.SDKError) (_result *bool)

func ParseAdvanceDecryptResponse added in v0.3.0

func ParseAdvanceDecryptResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseAdvanceEncryptResponse added in v0.3.0

func ParseAdvanceEncryptResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseAdvanceGenerateDataKeyPairResponse added in v0.5.0

func ParseAdvanceGenerateDataKeyPairResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseAdvanceGenerateDataKeyPairWithoutPlaintextResponse added in v0.5.0

func ParseAdvanceGenerateDataKeyPairWithoutPlaintextResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseAdvanceGenerateDataKeyResponse added in v0.3.0

func ParseAdvanceGenerateDataKeyResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseDecryptResponse

func ParseDecryptResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseEncryptResponse

func ParseEncryptResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseGenerateDataKeyPairResponse added in v0.5.0

func ParseGenerateDataKeyPairResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseGenerateDataKeyPairWithoutPlaintextResponse added in v0.5.0

func ParseGenerateDataKeyPairWithoutPlaintextResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseGenerateDataKeyResponse

func ParseGenerateDataKeyResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseGenerateRandomResponse

func ParseGenerateRandomResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseGetPublicKeyResponse

func ParseGetPublicKeyResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseGetSecretValueResponse added in v0.2.1

func ParseGetSecretValueResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseSignResponse

func ParseSignResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ParseVerifyResponse

func ParseVerifyResponse(resBody []byte) (_result map[string]interface{}, _err error)

func ReadJsonFile added in v0.4.0

func ReadJsonFile(jsonFile *string) (_result map[string]interface{}, _err error)

func SignString added in v0.4.0

func SignString(stringToSign *string, accessKeySecret *string) (_result *string, _err error)

Types

type ErrorResponse

type ErrorResponse struct {
	//
	StatusCode *string `json:"StatusCode,omitempty" xml:"StatusCode,omitempty" require:"true"`
	//
	ErrorCode *string `json:"ErrorCode,omitempty" xml:"ErrorCode,omitempty" require:"true"`
	//
	ErrorMessage *string `json:"ErrorMessage,omitempty" xml:"ErrorMessage,omitempty" require:"true"`
	//
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty" require:"true"`
}

func (ErrorResponse) GoString

func (s ErrorResponse) GoString() string

func (*ErrorResponse) SetErrorCode

func (s *ErrorResponse) SetErrorCode(v string) *ErrorResponse

func (*ErrorResponse) SetErrorMessage

func (s *ErrorResponse) SetErrorMessage(v string) *ErrorResponse

func (*ErrorResponse) SetRequestId

func (s *ErrorResponse) SetRequestId(v string) *ErrorResponse

func (*ErrorResponse) SetStatusCode

func (s *ErrorResponse) SetStatusCode(v string) *ErrorResponse

func (ErrorResponse) String

func (s ErrorResponse) String() string

type RuntimeOptions

type RuntimeOptions struct {
	// 是否自动重试
	Autoretry *bool `json:"autoretry,omitempty" xml:"autoretry,omitempty"`
	// 是否忽略SSL认证
	IgnoreSSL *bool `json:"ignoreSSL,omitempty" xml:"ignoreSSL,omitempty"`
	// 最大重试次数
	MaxAttempts *int `json:"maxAttempts,omitempty" xml:"maxAttempts,omitempty"`
	// 回退策略
	BackoffPolicy *string `json:"backoffPolicy,omitempty" xml:"backoffPolicy,omitempty"`
	// 回退周期
	BackoffPeriod *int `json:"backoffPeriod,omitempty" xml:"backoffPeriod,omitempty"`
	// 读取超时时间
	ReadTimeout *int `json:"readTimeout,omitempty" xml:"readTimeout,omitempty"`
	// 连接超时时间
	ConnectTimeout *int `json:"connectTimeout,omitempty" xml:"connectTimeout,omitempty"`
	// http代理
	HttpProxy *string `json:"httpProxy,omitempty" xml:"httpProxy,omitempty"`
	// https代理
	HttpsProxy *string `json:"httpsProxy,omitempty" xml:"httpsProxy,omitempty"`
	// 无代理
	NoProxy *string `json:"noProxy,omitempty" xml:"noProxy,omitempty"`
	// 最大闲置连接数
	MaxIdleConns *int `json:"maxIdleConns,omitempty" xml:"maxIdleConns,omitempty"`
	// socks5代理
	Socks5Proxy *string `json:"socks5Proxy,omitempty" xml:"socks5Proxy,omitempty"`
	// socks5代理协议
	Socks5NetWork *string `json:"socks5NetWork,omitempty" xml:"socks5NetWork,omitempty"`
	// 校验
	Verify *string `json:"verify,omitempty" xml:"verify,omitempty"`
	// 响应头
	Headers []*string `json:"headers,omitempty" xml:"headers,omitempty" type:"Repeated"`
}

func (RuntimeOptions) GoString

func (s RuntimeOptions) GoString() string

func (*RuntimeOptions) SetAutoretry

func (s *RuntimeOptions) SetAutoretry(v bool) *RuntimeOptions

func (*RuntimeOptions) SetBackoffPeriod

func (s *RuntimeOptions) SetBackoffPeriod(v int) *RuntimeOptions

func (*RuntimeOptions) SetBackoffPolicy

func (s *RuntimeOptions) SetBackoffPolicy(v string) *RuntimeOptions

func (*RuntimeOptions) SetConnectTimeout

func (s *RuntimeOptions) SetConnectTimeout(v int) *RuntimeOptions

func (*RuntimeOptions) SetHeaders

func (s *RuntimeOptions) SetHeaders(v []*string) *RuntimeOptions

func (*RuntimeOptions) SetHttpProxy

func (s *RuntimeOptions) SetHttpProxy(v string) *RuntimeOptions

func (*RuntimeOptions) SetHttpsProxy

func (s *RuntimeOptions) SetHttpsProxy(v string) *RuntimeOptions

func (*RuntimeOptions) SetIgnoreSSL

func (s *RuntimeOptions) SetIgnoreSSL(v bool) *RuntimeOptions

func (*RuntimeOptions) SetMaxAttempts

func (s *RuntimeOptions) SetMaxAttempts(v int) *RuntimeOptions

func (*RuntimeOptions) SetMaxIdleConns

func (s *RuntimeOptions) SetMaxIdleConns(v int) *RuntimeOptions

func (*RuntimeOptions) SetNoProxy

func (s *RuntimeOptions) SetNoProxy(v string) *RuntimeOptions

func (*RuntimeOptions) SetReadTimeout

func (s *RuntimeOptions) SetReadTimeout(v int) *RuntimeOptions

func (*RuntimeOptions) SetSocks5NetWork

func (s *RuntimeOptions) SetSocks5NetWork(v string) *RuntimeOptions

func (*RuntimeOptions) SetSocks5Proxy

func (s *RuntimeOptions) SetSocks5Proxy(v string) *RuntimeOptions

func (*RuntimeOptions) SetVerify

func (s *RuntimeOptions) SetVerify(v string) *RuntimeOptions

func (RuntimeOptions) String

func (s RuntimeOptions) String() string

Directories

Path Synopsis
protobuf
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL