master

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MasterKeyGet

func MasterKeyGet(req *MasterKeyGetRequest) (keyStore *crypto.KeyStore, err error)

获取数据解密的密钥

Types

type MasterKeyGetRequest

type MasterKeyGetRequest struct {
	api.BaseRequest
	SdkVer int    `json:"sdk_ver,omitempty" codec:"sdk_ver,omitempty"`
	Ts     int64  `json:"ts,omitempty" codec:"ts,omitempty"`
	Key    string `json:"key,omitempty" codec:"key,omitempty"`
	Tid    string `json:"tid,omitempty" codec:"tid,omitempty"`
}

type MasterKeyGetResponse

type MasterKeyGetResponse struct {
	ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Response  *MasterKeyResponse  `json:"jingdong_jos_master_key_get_responce,omitempty" codec:"jingdong_jos_master_key_get_responce,omitempty"`
}

type MasterKeyResponse

type MasterKeyResponse struct {
	Result *MasterKeyResult `json:"response,omitempty" codec:"response,omitempty"`
}

type MasterKeyResult

type MasterKeyResult struct {
	Code              int                `json:"status_code,omitempty" codec:"status_code,omitempty"`
	ErrorDesc         string             `json:"errorMsg,omitempty" codec:"errorMsg,omitempty"`
	Tid               string             `json:"tid,omitempty" codec:"tid,omitempty"`
	Ts                int64              `json:"ts,omitempty" codec:"ts,omitempty"`
	EncService        string             `json:"enc_service,omitempty" codec:"enc_service,omitempty"`
	KeyCacheDisabled  int                `json:"key_cache_disabled,omitempty" codec:"key_cache_disabled,omitempty"`
	KeyBackupDisabled int                `json:"key_backup_disabled,omitempty" codec:"key_backup_disabled,omitempty"`
	ServiceKeyList    []*crypto.KeyStore `json:"service_key_list,omitempty" codec:"service_key_list,omitempty"`
}

Jump to

Keyboard shortcuts

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