Documentation ¶
Index ¶
- type KMS
- func (svc *KMS) CreateAlias(keyID, aliasName string) error
- func (svc *KMS) CreateKey(tags ...Tag) (*SDK.KeyMetadata, error)
- func (svc *KMS) CreateKeyWithAlias(aliasName string, tags ...Tag) (*SDK.KeyMetadata, error)
- func (svc *KMS) Decrypt(encryptedData []byte) (plainData []byte, err error)
- func (svc *KMS) DecryptString(base64Text string) (plainText string, err error)
- func (svc *KMS) DeleteKey(keyName string, day int) error
- func (svc *KMS) DescribeKey(keyName string) (metaData *SDK.KeyMetadata, err error)
- func (svc *KMS) Encrypt(keyName string, plainData []byte) (encryptedData []byte, err error)
- func (svc *KMS) EncryptString(keyName, plainText string) (base64Text string, err error)
- func (svc *KMS) Errorf(format string, v ...interface{})
- func (svc *KMS) Infof(format string, v ...interface{})
- func (svc *KMS) ReEncrypt(destinationKey string, encryptedData []byte) (resultEncryptedData []byte, err error)
- func (svc *KMS) ReEncryptString(destinationKey, base64Text string) (resultBase64Text string, err error)
- func (svc *KMS) ScheduleKeyDeletion(keyID string, day int) error
- func (svc *KMS) SetLogger(logger log.Logger)
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KMS ¶
type KMS struct {
// contains filtered or unexported fields
}
KMS has KMS client.
func (*KMS) CreateAlias ¶
CreateAlias executes CreateAlias operation.
func (*KMS) CreateKey ¶
func (svc *KMS) CreateKey(tags ...Tag) (*SDK.KeyMetadata, error)
CreateKey executes CreateKey operation.
func (*KMS) CreateKeyWithAlias ¶
CreateKeyWithAlias creates a key and sets alias name.
func (*KMS) DecryptString ¶
DecryptString executes Decrypt operation with base64 string.
func (*KMS) DeleteKey ¶
DeleteKey executes ScheduleKeyDeletion operation from Key name(key id, arn or alias).
func (*KMS) DescribeKey ¶
func (svc *KMS) DescribeKey(keyName string) (metaData *SDK.KeyMetadata, err error)
DescribeKey executes DescribeKey operation.
func (*KMS) EncryptString ¶
EncryptString executes Encrypt operation with base64 string.
func (*KMS) ReEncrypt ¶
func (svc *KMS) ReEncrypt(destinationKey string, encryptedData []byte) (resultEncryptedData []byte, err error)
ReEncrypt executes ReEncrypt operation.
func (*KMS) ReEncryptString ¶
func (svc *KMS) ReEncryptString(destinationKey, base64Text string) (resultBase64Text string, err error)
ReEncryptString executes ReEncrypt operation with base64 string.
func (*KMS) ScheduleKeyDeletion ¶
ScheduleKeyDeletion executes ScheduleKeyDeletion operation.
Click to show internal directories.
Click to hide internal directories.