Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudKmsDescribeKeys() *schema.Resource
- func DataSourceTencentCloudKmsGetParametersForImport() *schema.Resource
- func DataSourceTencentCloudKmsKeys() *schema.Resource
- func DataSourceTencentCloudKmsListAlgorithms() *schema.Resource
- func DataSourceTencentCloudKmsListKeys() *schema.Resource
- func DataSourceTencentCloudKmsPublicKey() *schema.Resource
- func DataSourceTencentCloudKmsWhiteBoxDecryptKey() *schema.Resource
- func DataSourceTencentCloudKmsWhiteBoxDeviceFingerprints() *schema.Resource
- func DataSourceTencentCloudKmsWhiteBoxKeyDetails() *schema.Resource
- func ResourceTencentCloudKmsCloudResourceAttachment() *schema.Resource
- func ResourceTencentCloudKmsExternalKey() *schema.Resource
- func ResourceTencentCloudKmsKey() *schema.Resource
- func ResourceTencentCloudKmsOverwriteWhiteBoxDeviceFingerprints() *schema.Resource
- func ResourceTencentCloudKmsWhiteBoxKey() *schema.Resource
- func TencentKmsBasicInfo() map[string]*schema.Schema
- type KmsService
- func (me *KmsService) ArchiveKey(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) CancelKeyArchive(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) CancelKeyDeletion(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) CreateKey(ctx context.Context, keyType uint64, alias, description, keyUsage string) (keyId string, errRet error)
- func (me *KmsService) DeleteImportKeyMaterial(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) DeleteKey(ctx context.Context, keyId string, pendingDeleteWindowInDays uint64) (errRet error)
- func (me *KmsService) DeleteKmsCloudResourceAttachmentById(ctx context.Context, keyId, productId, resourceId string) (errRet error)
- func (me *KmsService) DeleteKmsWhiteBoxKeyById(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) DescribeKeyById(ctx context.Context, keyId string) (key *kms.KeyMetadata, errRet error)
- func (me *KmsService) DescribeKeysByFilter(ctx context.Context, param map[string]interface{}) (keys []*kms.KeyMetadata, errRet error)
- func (me *KmsService) DescribeKmsCloudResourceAttachmentById(ctx context.Context, keyId string) (keyMetadata *kms.KeyMetadata, errRet error)
- func (me *KmsService) DescribeKmsGetParametersForImportByFilter(ctx context.Context, param map[string]interface{}) (getParametersForImport *kms.GetParametersForImportResponseParams, errRet error)
- func (me *KmsService) DescribeKmsKeyListsByFilter(ctx context.Context, param map[string]interface{}) (KeyLists []*kms.KeyMetadata, errRet error)
- func (me *KmsService) DescribeKmsListAlgorithmsByFilter(ctx context.Context) (listAlgorithms *kms.ListAlgorithmsResponseParams, errRet error)
- func (me *KmsService) DescribeKmsListKeysByFilter(ctx context.Context, param map[string]interface{}) (listKeys []*kms.Key, errRet error)
- func (me *KmsService) DescribeKmsPublicKeyByFilter(ctx context.Context, param map[string]interface{}) (publicKey *kms.GetPublicKeyResponseParams, errRet error)
- func (me *KmsService) DescribeKmsWhiteBoxDecryptKeyByFilter(ctx context.Context, param map[string]interface{}) (whiteBoxDecryptKey *kms.DescribeWhiteBoxDecryptKeyResponseParams, errRet error)
- func (me *KmsService) DescribeKmsWhiteBoxDeviceFingerprintsByFilter(ctx context.Context, param map[string]interface{}) (whiteBoxDeviceFingerprints []*kms.DeviceFingerprint, errRet error)
- func (me *KmsService) DescribeKmsWhiteBoxKeyById(ctx context.Context, keyId string) (whiteBoxKey *kms.WhiteboxKeyInfo, errRet error)
- func (me *KmsService) DescribeKmsWhiteBoxKeyDetailsByFilter(ctx context.Context, param map[string]interface{}) (whiteBoxKeyInfo []*kms.WhiteboxKeyInfo, errRet error)
- func (me *KmsService) DisableKey(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) DisableKeyRotation(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) EnableKey(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) EnableKeyRotation(ctx context.Context, keyId string) (errRet error)
- func (me *KmsService) ImportKeyMaterial(ctx context.Context, param map[string]interface{}) (errRet error)
- func (me *KmsService) UpdateKeyAlias(ctx context.Context, keyId, alias string) (errRet error)
- func (me *KmsService) UpdateKeyDescription(ctx context.Context, keyId, description string) (errRet error)
Constants ¶
View Source
const ( KMS_ORIGIN_TENCENT_KMS = "TENCENT_KMS" KMS_ORIGIN_EXTERNAL = "EXTERNAL" KMS_ORIGIN_ALL = "ALL" )
View Source
const ( KMS_KEY_USAGE_ALL = "ALL" KMS_KEY_USAGE_ENCRYPT_DECRYPT = "ENCRYPT_DECRYPT" KMS_KEY_USAGE_ASYMMETRIC_DECRYPT_RSA_2048 = "ASYMMETRIC_DECRYPT_RSA_2048" KMS_KEY_USAGE_ASYMMETRIC_DECRYPT_SM2 = "ASYMMETRIC_DECRYPT_SM2" KMS_KEY_USAGE_ASYMMETRIC_SIGN_VERIFY_SM2 = "ASYMMETRIC_SIGN_VERIFY_SM2" KMS_KEY_USAGE_ASYMMETRIC_SIGN_VERIFY_RSA_2048 = "ASYMMETRIC_SIGN_VERIFY_RSA_2048" KMS_KEY_USAGE_ASYMMETRIC_SIGN_VERIFY_ECC = "ASYMMETRIC_SIGN_VERIFY_ECC" )
View Source
const ( KMS_WRAPPING_ALGORITHM_RSAES_PKCS1_V1_5 = "RSAES_PKCS1_V1_5" KMS_WRAPPING_ALGORITHM_RSAES_OAEP_SHA_1 = "RSAES_OAEP_SHA_1" KMS_WRAPPING_ALGORITHM_RSAES_OAEP_SHA_256 = "RSAES_OAEP_SHA_256" )
View Source
const ( KMS_KEY_STATE_ALL = "All" KMS_KEY_STATE_ENABLED = "Enabled" KMS_KEY_STATE_DISABLED = "Disabled" KMS_KEY_STATE_PENDINGDELETE = "PendingDelete" KMS_KEY_STATE_PENDINGIMPORT = "PendingImport" KMS_KEY_STATE_ARCHIVED = "Archived" )
View Source
const ( WHITE_BOX_KEY_ALGORITHM_AES_256 = "AES_256" WHITE_BOX_KEY_ALGORITHM_SM4 = "SM4" )
View Source
const ( WHITE_BOX_KEY_STATUS_ENABLED = "Enabled" WHITE_BOX_KEY_STATUS_DISABLED = "Disabled" )
View Source
const (
KMS_PAGE_LIMIT = 200
)
View Source
const (
KMS_WRAPPING_KEY_SPEC_RSA_2048 = "RSA_2048"
)
Variables ¶
View Source
var KMS_ORIGIN_TYPE = map[string]uint64{ KMS_ORIGIN_TENCENT_KMS: 1, KMS_ORIGIN_EXTERNAL: 2, }
View Source
var KMS_RETRYABLE_ERROR = []string{
"ClientError.NetworkError",
"ClientError.HttpStatusCodeError",
}
View Source
var WHITE_BOX_KEY_ALGORITHM = []string{ WHITE_BOX_KEY_ALGORITHM_AES_256, WHITE_BOX_KEY_ALGORITHM_SM4, }
View Source
var WHITE_BOX_KEY_STATUS = []string{ WHITE_BOX_KEY_STATUS_ENABLED, WHITE_BOX_KEY_STATUS_DISABLED, }
Functions ¶
func TencentKmsBasicInfo ¶
Types ¶
type KmsService ¶
type KmsService struct {
// contains filtered or unexported fields
}
func NewKmsService ¶
func NewKmsService(client *connectivity.TencentCloudClient) KmsService
func (*KmsService) ArchiveKey ¶
func (me *KmsService) ArchiveKey(ctx context.Context, keyId string) (errRet error)
func (*KmsService) CancelKeyArchive ¶
func (me *KmsService) CancelKeyArchive(ctx context.Context, keyId string) (errRet error)
func (*KmsService) CancelKeyDeletion ¶
func (me *KmsService) CancelKeyDeletion(ctx context.Context, keyId string) (errRet error)
func (*KmsService) DeleteImportKeyMaterial ¶
func (me *KmsService) DeleteImportKeyMaterial(ctx context.Context, keyId string) (errRet error)
func (*KmsService) DeleteKmsCloudResourceAttachmentById ¶
func (me *KmsService) DeleteKmsCloudResourceAttachmentById(ctx context.Context, keyId, productId, resourceId string) (errRet error)
func (*KmsService) DeleteKmsWhiteBoxKeyById ¶
func (me *KmsService) DeleteKmsWhiteBoxKeyById(ctx context.Context, keyId string) (errRet error)
func (*KmsService) DescribeKeyById ¶
func (me *KmsService) DescribeKeyById(ctx context.Context, keyId string) (key *kms.KeyMetadata, errRet error)
func (*KmsService) DescribeKeysByFilter ¶
func (me *KmsService) DescribeKeysByFilter(ctx context.Context, param map[string]interface{}) (keys []*kms.KeyMetadata, errRet error)
func (*KmsService) DescribeKmsCloudResourceAttachmentById ¶
func (me *KmsService) DescribeKmsCloudResourceAttachmentById(ctx context.Context, keyId string) (keyMetadata *kms.KeyMetadata, errRet error)
func (*KmsService) DescribeKmsGetParametersForImportByFilter ¶
func (me *KmsService) DescribeKmsGetParametersForImportByFilter(ctx context.Context, param map[string]interface{}) (getParametersForImport *kms.GetParametersForImportResponseParams, errRet error)
func (*KmsService) DescribeKmsKeyListsByFilter ¶
func (me *KmsService) DescribeKmsKeyListsByFilter(ctx context.Context, param map[string]interface{}) (KeyLists []*kms.KeyMetadata, errRet error)
func (*KmsService) DescribeKmsListAlgorithmsByFilter ¶
func (me *KmsService) DescribeKmsListAlgorithmsByFilter(ctx context.Context) (listAlgorithms *kms.ListAlgorithmsResponseParams, errRet error)
func (*KmsService) DescribeKmsListKeysByFilter ¶
func (*KmsService) DescribeKmsPublicKeyByFilter ¶
func (me *KmsService) DescribeKmsPublicKeyByFilter(ctx context.Context, param map[string]interface{}) (publicKey *kms.GetPublicKeyResponseParams, errRet error)
func (*KmsService) DescribeKmsWhiteBoxDecryptKeyByFilter ¶
func (me *KmsService) DescribeKmsWhiteBoxDecryptKeyByFilter(ctx context.Context, param map[string]interface{}) (whiteBoxDecryptKey *kms.DescribeWhiteBoxDecryptKeyResponseParams, errRet error)
func (*KmsService) DescribeKmsWhiteBoxDeviceFingerprintsByFilter ¶
func (me *KmsService) DescribeKmsWhiteBoxDeviceFingerprintsByFilter(ctx context.Context, param map[string]interface{}) (whiteBoxDeviceFingerprints []*kms.DeviceFingerprint, errRet error)
func (*KmsService) DescribeKmsWhiteBoxKeyById ¶
func (me *KmsService) DescribeKmsWhiteBoxKeyById(ctx context.Context, keyId string) (whiteBoxKey *kms.WhiteboxKeyInfo, errRet error)
func (*KmsService) DescribeKmsWhiteBoxKeyDetailsByFilter ¶
func (me *KmsService) DescribeKmsWhiteBoxKeyDetailsByFilter(ctx context.Context, param map[string]interface{}) (whiteBoxKeyInfo []*kms.WhiteboxKeyInfo, errRet error)
func (*KmsService) DisableKey ¶
func (me *KmsService) DisableKey(ctx context.Context, keyId string) (errRet error)
func (*KmsService) DisableKeyRotation ¶
func (me *KmsService) DisableKeyRotation(ctx context.Context, keyId string) (errRet error)
func (*KmsService) EnableKey ¶
func (me *KmsService) EnableKey(ctx context.Context, keyId string) (errRet error)
func (*KmsService) EnableKeyRotation ¶
func (me *KmsService) EnableKeyRotation(ctx context.Context, keyId string) (errRet error)
func (*KmsService) ImportKeyMaterial ¶
func (me *KmsService) ImportKeyMaterial(ctx context.Context, param map[string]interface{}) (errRet error)
func (*KmsService) UpdateKeyAlias ¶
func (me *KmsService) UpdateKeyAlias(ctx context.Context, keyId, alias string) (errRet error)
func (*KmsService) UpdateKeyDescription ¶
func (me *KmsService) UpdateKeyDescription(ctx context.Context, keyId, description string) (errRet error)
Source Files ¶
- data_source_tc_kms_describe_keys.go
- data_source_tc_kms_get_parameters_for_import.go
- data_source_tc_kms_keys.go
- data_source_tc_kms_list_algorithms.go
- data_source_tc_kms_list_keys.go
- data_source_tc_kms_public_key.go
- data_source_tc_kms_white_box_decrypt_key.go
- data_source_tc_kms_white_box_device_fingerprints.go
- data_source_tc_kms_white_box_key_details.go
- extension_kms.go
- resource_tc_kms_cloud_resource_attachment.go
- resource_tc_kms_external_key.go
- resource_tc_kms_key.go
- resource_tc_kms_overwrite_white_box_device_fingerprints.go
- resource_tc_kms_white_box_key.go
- service_tencentcloud_kms.go
Click to show internal directories.
Click to hide internal directories.