master

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MasterKeyGet

func MasterKeyGet(req *MasterKeyGetRequest) ([]crypto.KeyStore, 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"`
}

func (MasterKeyGetResponse) Error added in v1.1.1

func (r MasterKeyGetResponse) Error() string

func (MasterKeyGetResponse) IsError added in v1.1.1

func (r MasterKeyGetResponse) IsError() bool

type MasterKeyResponse

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

func (MasterKeyResponse) Error added in v1.1.1

func (r MasterKeyResponse) Error() string

func (MasterKeyResponse) IsError added in v1.1.1

func (r MasterKeyResponse) IsError() bool

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"`
}

func (MasterKeyResult) Error added in v1.1.1

func (r MasterKeyResult) Error() string

func (MasterKeyResult) IsError added in v1.1.1

func (r MasterKeyResult) IsError() bool

Jump to

Keyboard shortcuts

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