Debian Codegraph @

kms/encrypt.go

raw symbols SCIP
1 package kms
2
3 import "github.com/denverdino/aliyungo/common"
4
5 //https://help.aliyun.com/document_detail/28949.html?spm=5176.doc28950.6.569.kI1mTw
6 type EncryptAgrs struct {
7 KeyId string
8 Plaintext string
9 EncryptionContext map[string]string
10 }
11
12 type EncryptResponse struct {
13 common.Response
14 CiphertextBlob string
15 KeyId string
16 }
17
18 func (client *Client) Encrypt(args *EncryptAgrs) (*EncryptResponse, error) {
19 response := &EncryptResponse{}
20 err := client.Invoke("Encrypt", args, response)
21 return response, err
22 }