Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateKey() (string, error)
- func (c *Client) CreateKeyAlias(keyID, keyAlias string) error
- func (c *Client) DecryptBase64(key, cipherText string) (string, error)
- func (c *Client) EncryptBase64(keyAlias, key, text string) (string, error)
- func (c *Client) KeyExists(keyAlias string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the wrapper of KMS API client
func (*Client) CreateKeyAlias ¶
CreateKeyAlias attaches key alias to the given key
func (*Client) DecryptBase64 ¶
DecryptBase64 decrypts the given base64-encoded cipher text
func (*Client) EncryptBase64 ¶
EncryptBase64 encrypts the given text and return as base64-encoded cipher text
Click to show internal directories.
Click to hide internal directories.