Documentation ¶
Index ¶
- func GenReqDefForBatchCreateKmsTags(request *model.BatchCreateKmsTagsRequest) *def.HttpRequestDef
- func GenReqDefForCancelGrant(request *model.CancelGrantRequest) *def.HttpRequestDef
- func GenReqDefForCancelKeyDeletion(request *model.CancelKeyDeletionRequest) *def.HttpRequestDef
- func GenReqDefForCancelSelfGrant(request *model.CancelSelfGrantRequest) *def.HttpRequestDef
- func GenReqDefForCreateDatakey(request *model.CreateDatakeyRequest) *def.HttpRequestDef
- func GenReqDefForCreateDatakeyWithoutPlaintext(request *model.CreateDatakeyWithoutPlaintextRequest) *def.HttpRequestDef
- func GenReqDefForCreateGrant(request *model.CreateGrantRequest) *def.HttpRequestDef
- func GenReqDefForCreateKey(request *model.CreateKeyRequest) *def.HttpRequestDef
- func GenReqDefForCreateKmsTag(request *model.CreateKmsTagRequest) *def.HttpRequestDef
- func GenReqDefForCreateParametersForImport(request *model.CreateParametersForImportRequest) *def.HttpRequestDef
- func GenReqDefForCreateRandom(request *model.CreateRandomRequest) *def.HttpRequestDef
- func GenReqDefForDecryptData(request *model.DecryptDataRequest) *def.HttpRequestDef
- func GenReqDefForDecryptDatakey(request *model.DecryptDatakeyRequest) *def.HttpRequestDef
- func GenReqDefForDeleteImportedKeyMaterial(request *model.DeleteImportedKeyMaterialRequest) *def.HttpRequestDef
- func GenReqDefForDeleteKey(request *model.DeleteKeyRequest) *def.HttpRequestDef
- func GenReqDefForDeleteTag(request *model.DeleteTagRequest) *def.HttpRequestDef
- func GenReqDefForDisableKey(request *model.DisableKeyRequest) *def.HttpRequestDef
- func GenReqDefForDisableKeyRotation(request *model.DisableKeyRotationRequest) *def.HttpRequestDef
- func GenReqDefForEnableKey(request *model.EnableKeyRequest) *def.HttpRequestDef
- func GenReqDefForEnableKeyRotation(request *model.EnableKeyRotationRequest) *def.HttpRequestDef
- func GenReqDefForEncryptData(request *model.EncryptDataRequest) *def.HttpRequestDef
- func GenReqDefForEncryptDatakey(request *model.EncryptDatakeyRequest) *def.HttpRequestDef
- func GenReqDefForImportKeyMaterial(request *model.ImportKeyMaterialRequest) *def.HttpRequestDef
- func GenReqDefForListGrants(request *model.ListGrantsRequest) *def.HttpRequestDef
- func GenReqDefForListKeyDetail(request *model.ListKeyDetailRequest) *def.HttpRequestDef
- func GenReqDefForListKeys(request *model.ListKeysRequest) *def.HttpRequestDef
- func GenReqDefForListKmsByTags(request *model.ListKmsByTagsRequest) *def.HttpRequestDef
- func GenReqDefForListKmsTags(request *model.ListKmsTagsRequest) *def.HttpRequestDef
- func GenReqDefForListRetirableGrants(request *model.ListRetirableGrantsRequest) *def.HttpRequestDef
- func GenReqDefForShowKeyRotationStatus(request *model.ShowKeyRotationStatusRequest) *def.HttpRequestDef
- func GenReqDefForShowKmsTags(request *model.ShowKmsTagsRequest) *def.HttpRequestDef
- func GenReqDefForShowUserInstances(request *model.ShowUserInstancesRequest) *def.HttpRequestDef
- func GenReqDefForShowUserQuotas(request *model.ShowUserQuotasRequest) *def.HttpRequestDef
- func GenReqDefForShowVersion(request *model.ShowVersionRequest) *def.HttpRequestDef
- func GenReqDefForShowVersions(request *model.ShowVersionsRequest) *def.HttpRequestDef
- func GenReqDefForUpdateKeyAlias(request *model.UpdateKeyAliasRequest) *def.HttpRequestDef
- func GenReqDefForUpdateKeyDescription(request *model.UpdateKeyDescriptionRequest) *def.HttpRequestDef
- func GenReqDefForUpdateKeyRotationInterval(request *model.UpdateKeyRotationIntervalRequest) *def.HttpRequestDef
- func GenRespForBatchCreateKmsTags() (*model.BatchCreateKmsTagsResponse, *def.HttpResponseDef)
- func GenRespForCancelGrant() (*model.CancelGrantResponse, *def.HttpResponseDef)
- func GenRespForCancelKeyDeletion() (*model.CancelKeyDeletionResponse, *def.HttpResponseDef)
- func GenRespForCancelSelfGrant() (*model.CancelSelfGrantResponse, *def.HttpResponseDef)
- func GenRespForCreateDatakey() (*model.CreateDatakeyResponse, *def.HttpResponseDef)
- func GenRespForCreateDatakeyWithoutPlaintext() (*model.CreateDatakeyWithoutPlaintextResponse, *def.HttpResponseDef)
- func GenRespForCreateGrant() (*model.CreateGrantResponse, *def.HttpResponseDef)
- func GenRespForCreateKey() (*model.CreateKeyResponse, *def.HttpResponseDef)
- func GenRespForCreateKmsTag() (*model.CreateKmsTagResponse, *def.HttpResponseDef)
- func GenRespForCreateParametersForImport() (*model.CreateParametersForImportResponse, *def.HttpResponseDef)
- func GenRespForCreateRandom() (*model.CreateRandomResponse, *def.HttpResponseDef)
- func GenRespForDecryptData() (*model.DecryptDataResponse, *def.HttpResponseDef)
- func GenRespForDecryptDatakey() (*model.DecryptDatakeyResponse, *def.HttpResponseDef)
- func GenRespForDeleteImportedKeyMaterial() (*model.DeleteImportedKeyMaterialResponse, *def.HttpResponseDef)
- func GenRespForDeleteKey() (*model.DeleteKeyResponse, *def.HttpResponseDef)
- func GenRespForDeleteTag() (*model.DeleteTagResponse, *def.HttpResponseDef)
- func GenRespForDisableKey() (*model.DisableKeyResponse, *def.HttpResponseDef)
- func GenRespForDisableKeyRotation() (*model.DisableKeyRotationResponse, *def.HttpResponseDef)
- func GenRespForEnableKey() (*model.EnableKeyResponse, *def.HttpResponseDef)
- func GenRespForEnableKeyRotation() (*model.EnableKeyRotationResponse, *def.HttpResponseDef)
- func GenRespForEncryptData() (*model.EncryptDataResponse, *def.HttpResponseDef)
- func GenRespForEncryptDatakey() (*model.EncryptDatakeyResponse, *def.HttpResponseDef)
- func GenRespForImportKeyMaterial() (*model.ImportKeyMaterialResponse, *def.HttpResponseDef)
- func GenRespForListGrants() (*model.ListGrantsResponse, *def.HttpResponseDef)
- func GenRespForListKeyDetail() (*model.ListKeyDetailResponse, *def.HttpResponseDef)
- func GenRespForListKeys() (*model.ListKeysResponse, *def.HttpResponseDef)
- func GenRespForListKmsByTags() (*model.ListKmsByTagsResponse, *def.HttpResponseDef)
- func GenRespForListKmsTags() (*model.ListKmsTagsResponse, *def.HttpResponseDef)
- func GenRespForListRetirableGrants() (*model.ListRetirableGrantsResponse, *def.HttpResponseDef)
- func GenRespForShowKeyRotationStatus() (*model.ShowKeyRotationStatusResponse, *def.HttpResponseDef)
- func GenRespForShowKmsTags() (*model.ShowKmsTagsResponse, *def.HttpResponseDef)
- func GenRespForShowUserInstances() (*model.ShowUserInstancesResponse, *def.HttpResponseDef)
- func GenRespForShowUserQuotas() (*model.ShowUserQuotasResponse, *def.HttpResponseDef)
- func GenRespForShowVersion() (*model.ShowVersionResponse, *def.HttpResponseDef)
- func GenRespForShowVersions() (*model.ShowVersionsResponse, *def.HttpResponseDef)
- func GenRespForUpdateKeyAlias() (*model.UpdateKeyAliasResponse, *def.HttpResponseDef)
- func GenRespForUpdateKeyDescription() (*model.UpdateKeyDescriptionResponse, *def.HttpResponseDef)
- func GenRespForUpdateKeyRotationInterval() (*model.UpdateKeyRotationIntervalResponse, *def.HttpResponseDef)
- func KmsClientBuilder() *http_client.HcHttpClientBuilder
- type KmsClient
- func (c *KmsClient) BatchCreateKmsTags(request *model.BatchCreateKmsTagsRequest) (*model.BatchCreateKmsTagsResponse, error)
- func (c *KmsClient) CancelGrant(request *model.CancelGrantRequest) (*model.CancelGrantResponse, error)
- func (c *KmsClient) CancelKeyDeletion(request *model.CancelKeyDeletionRequest) (*model.CancelKeyDeletionResponse, error)
- func (c *KmsClient) CancelSelfGrant(request *model.CancelSelfGrantRequest) (*model.CancelSelfGrantResponse, error)
- func (c *KmsClient) CreateDatakey(request *model.CreateDatakeyRequest) (*model.CreateDatakeyResponse, error)
- func (c *KmsClient) CreateDatakeyWithoutPlaintext(request *model.CreateDatakeyWithoutPlaintextRequest) (*model.CreateDatakeyWithoutPlaintextResponse, error)
- func (c *KmsClient) CreateGrant(request *model.CreateGrantRequest) (*model.CreateGrantResponse, error)
- func (c *KmsClient) CreateKey(request *model.CreateKeyRequest) (*model.CreateKeyResponse, error)
- func (c *KmsClient) CreateKmsTag(request *model.CreateKmsTagRequest) (*model.CreateKmsTagResponse, error)
- func (c *KmsClient) CreateParametersForImport(request *model.CreateParametersForImportRequest) (*model.CreateParametersForImportResponse, error)
- func (c *KmsClient) CreateRandom(request *model.CreateRandomRequest) (*model.CreateRandomResponse, error)
- func (c *KmsClient) DecryptData(request *model.DecryptDataRequest) (*model.DecryptDataResponse, error)
- func (c *KmsClient) DecryptDatakey(request *model.DecryptDatakeyRequest) (*model.DecryptDatakeyResponse, error)
- func (c *KmsClient) DeleteImportedKeyMaterial(request *model.DeleteImportedKeyMaterialRequest) (*model.DeleteImportedKeyMaterialResponse, error)
- func (c *KmsClient) DeleteKey(request *model.DeleteKeyRequest) (*model.DeleteKeyResponse, error)
- func (c *KmsClient) DeleteTag(request *model.DeleteTagRequest) (*model.DeleteTagResponse, error)
- func (c *KmsClient) DisableKey(request *model.DisableKeyRequest) (*model.DisableKeyResponse, error)
- func (c *KmsClient) DisableKeyRotation(request *model.DisableKeyRotationRequest) (*model.DisableKeyRotationResponse, error)
- func (c *KmsClient) EnableKey(request *model.EnableKeyRequest) (*model.EnableKeyResponse, error)
- func (c *KmsClient) EnableKeyRotation(request *model.EnableKeyRotationRequest) (*model.EnableKeyRotationResponse, error)
- func (c *KmsClient) EncryptData(request *model.EncryptDataRequest) (*model.EncryptDataResponse, error)
- func (c *KmsClient) EncryptDatakey(request *model.EncryptDatakeyRequest) (*model.EncryptDatakeyResponse, error)
- func (c *KmsClient) ImportKeyMaterial(request *model.ImportKeyMaterialRequest) (*model.ImportKeyMaterialResponse, error)
- func (c *KmsClient) ListGrants(request *model.ListGrantsRequest) (*model.ListGrantsResponse, error)
- func (c *KmsClient) ListKeyDetail(request *model.ListKeyDetailRequest) (*model.ListKeyDetailResponse, error)
- func (c *KmsClient) ListKeys(request *model.ListKeysRequest) (*model.ListKeysResponse, error)
- func (c *KmsClient) ListKmsByTags(request *model.ListKmsByTagsRequest) (*model.ListKmsByTagsResponse, error)
- func (c *KmsClient) ListKmsTags(request *model.ListKmsTagsRequest) (*model.ListKmsTagsResponse, error)
- func (c *KmsClient) ListRetirableGrants(request *model.ListRetirableGrantsRequest) (*model.ListRetirableGrantsResponse, error)
- func (c *KmsClient) ShowKeyRotationStatus(request *model.ShowKeyRotationStatusRequest) (*model.ShowKeyRotationStatusResponse, error)
- func (c *KmsClient) ShowKmsTags(request *model.ShowKmsTagsRequest) (*model.ShowKmsTagsResponse, error)
- func (c *KmsClient) ShowUserInstances(request *model.ShowUserInstancesRequest) (*model.ShowUserInstancesResponse, error)
- func (c *KmsClient) ShowUserQuotas(request *model.ShowUserQuotasRequest) (*model.ShowUserQuotasResponse, error)
- func (c *KmsClient) ShowVersion(request *model.ShowVersionRequest) (*model.ShowVersionResponse, error)
- func (c *KmsClient) ShowVersions(request *model.ShowVersionsRequest) (*model.ShowVersionsResponse, error)
- func (c *KmsClient) UpdateKeyAlias(request *model.UpdateKeyAliasRequest) (*model.UpdateKeyAliasResponse, error)
- func (c *KmsClient) UpdateKeyDescription(request *model.UpdateKeyDescriptionRequest) (*model.UpdateKeyDescriptionResponse, error)
- func (c *KmsClient) UpdateKeyRotationInterval(request *model.UpdateKeyRotationIntervalRequest) (*model.UpdateKeyRotationIntervalResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForBatchCreateKmsTags ¶
func GenReqDefForBatchCreateKmsTags(request *model.BatchCreateKmsTagsRequest) *def.HttpRequestDef
func GenReqDefForCancelGrant ¶
func GenReqDefForCancelGrant(request *model.CancelGrantRequest) *def.HttpRequestDef
func GenReqDefForCancelKeyDeletion ¶
func GenReqDefForCancelKeyDeletion(request *model.CancelKeyDeletionRequest) *def.HttpRequestDef
func GenReqDefForCancelSelfGrant ¶
func GenReqDefForCancelSelfGrant(request *model.CancelSelfGrantRequest) *def.HttpRequestDef
func GenReqDefForCreateDatakey ¶
func GenReqDefForCreateDatakey(request *model.CreateDatakeyRequest) *def.HttpRequestDef
func GenReqDefForCreateDatakeyWithoutPlaintext ¶
func GenReqDefForCreateDatakeyWithoutPlaintext(request *model.CreateDatakeyWithoutPlaintextRequest) *def.HttpRequestDef
func GenReqDefForCreateGrant ¶
func GenReqDefForCreateGrant(request *model.CreateGrantRequest) *def.HttpRequestDef
func GenReqDefForCreateKey ¶
func GenReqDefForCreateKey(request *model.CreateKeyRequest) *def.HttpRequestDef
func GenReqDefForCreateKmsTag ¶
func GenReqDefForCreateKmsTag(request *model.CreateKmsTagRequest) *def.HttpRequestDef
func GenReqDefForCreateParametersForImport ¶
func GenReqDefForCreateParametersForImport(request *model.CreateParametersForImportRequest) *def.HttpRequestDef
func GenReqDefForCreateRandom ¶
func GenReqDefForCreateRandom(request *model.CreateRandomRequest) *def.HttpRequestDef
func GenReqDefForDecryptData ¶
func GenReqDefForDecryptData(request *model.DecryptDataRequest) *def.HttpRequestDef
func GenReqDefForDecryptDatakey ¶
func GenReqDefForDecryptDatakey(request *model.DecryptDatakeyRequest) *def.HttpRequestDef
func GenReqDefForDeleteImportedKeyMaterial ¶
func GenReqDefForDeleteImportedKeyMaterial(request *model.DeleteImportedKeyMaterialRequest) *def.HttpRequestDef
func GenReqDefForDeleteKey ¶
func GenReqDefForDeleteKey(request *model.DeleteKeyRequest) *def.HttpRequestDef
func GenReqDefForDeleteTag ¶
func GenReqDefForDeleteTag(request *model.DeleteTagRequest) *def.HttpRequestDef
func GenReqDefForDisableKey ¶
func GenReqDefForDisableKey(request *model.DisableKeyRequest) *def.HttpRequestDef
func GenReqDefForDisableKeyRotation ¶
func GenReqDefForDisableKeyRotation(request *model.DisableKeyRotationRequest) *def.HttpRequestDef
func GenReqDefForEnableKey ¶
func GenReqDefForEnableKey(request *model.EnableKeyRequest) *def.HttpRequestDef
func GenReqDefForEnableKeyRotation ¶
func GenReqDefForEnableKeyRotation(request *model.EnableKeyRotationRequest) *def.HttpRequestDef
func GenReqDefForEncryptData ¶
func GenReqDefForEncryptData(request *model.EncryptDataRequest) *def.HttpRequestDef
func GenReqDefForEncryptDatakey ¶
func GenReqDefForEncryptDatakey(request *model.EncryptDatakeyRequest) *def.HttpRequestDef
func GenReqDefForImportKeyMaterial ¶
func GenReqDefForImportKeyMaterial(request *model.ImportKeyMaterialRequest) *def.HttpRequestDef
func GenReqDefForListGrants ¶
func GenReqDefForListGrants(request *model.ListGrantsRequest) *def.HttpRequestDef
func GenReqDefForListKeyDetail ¶
func GenReqDefForListKeyDetail(request *model.ListKeyDetailRequest) *def.HttpRequestDef
func GenReqDefForListKeys ¶
func GenReqDefForListKeys(request *model.ListKeysRequest) *def.HttpRequestDef
func GenReqDefForListKmsByTags ¶
func GenReqDefForListKmsByTags(request *model.ListKmsByTagsRequest) *def.HttpRequestDef
func GenReqDefForListKmsTags ¶
func GenReqDefForListKmsTags(request *model.ListKmsTagsRequest) *def.HttpRequestDef
func GenReqDefForListRetirableGrants ¶
func GenReqDefForListRetirableGrants(request *model.ListRetirableGrantsRequest) *def.HttpRequestDef
func GenReqDefForShowKeyRotationStatus ¶
func GenReqDefForShowKeyRotationStatus(request *model.ShowKeyRotationStatusRequest) *def.HttpRequestDef
func GenReqDefForShowKmsTags ¶
func GenReqDefForShowKmsTags(request *model.ShowKmsTagsRequest) *def.HttpRequestDef
func GenReqDefForShowUserInstances ¶
func GenReqDefForShowUserInstances(request *model.ShowUserInstancesRequest) *def.HttpRequestDef
func GenReqDefForShowUserQuotas ¶
func GenReqDefForShowUserQuotas(request *model.ShowUserQuotasRequest) *def.HttpRequestDef
func GenReqDefForShowVersion ¶
func GenReqDefForShowVersion(request *model.ShowVersionRequest) *def.HttpRequestDef
func GenReqDefForShowVersions ¶
func GenReqDefForShowVersions(request *model.ShowVersionsRequest) *def.HttpRequestDef
func GenReqDefForUpdateKeyAlias ¶
func GenReqDefForUpdateKeyAlias(request *model.UpdateKeyAliasRequest) *def.HttpRequestDef
func GenReqDefForUpdateKeyDescription ¶
func GenReqDefForUpdateKeyDescription(request *model.UpdateKeyDescriptionRequest) *def.HttpRequestDef
func GenReqDefForUpdateKeyRotationInterval ¶
func GenReqDefForUpdateKeyRotationInterval(request *model.UpdateKeyRotationIntervalRequest) *def.HttpRequestDef
func GenRespForBatchCreateKmsTags ¶
func GenRespForBatchCreateKmsTags() (*model.BatchCreateKmsTagsResponse, *def.HttpResponseDef)
func GenRespForCancelGrant ¶
func GenRespForCancelGrant() (*model.CancelGrantResponse, *def.HttpResponseDef)
func GenRespForCancelKeyDeletion ¶
func GenRespForCancelKeyDeletion() (*model.CancelKeyDeletionResponse, *def.HttpResponseDef)
func GenRespForCancelSelfGrant ¶
func GenRespForCancelSelfGrant() (*model.CancelSelfGrantResponse, *def.HttpResponseDef)
func GenRespForCreateDatakey ¶
func GenRespForCreateDatakey() (*model.CreateDatakeyResponse, *def.HttpResponseDef)
func GenRespForCreateDatakeyWithoutPlaintext ¶
func GenRespForCreateDatakeyWithoutPlaintext() (*model.CreateDatakeyWithoutPlaintextResponse, *def.HttpResponseDef)
func GenRespForCreateGrant ¶
func GenRespForCreateGrant() (*model.CreateGrantResponse, *def.HttpResponseDef)
func GenRespForCreateKey ¶
func GenRespForCreateKey() (*model.CreateKeyResponse, *def.HttpResponseDef)
func GenRespForCreateKmsTag ¶
func GenRespForCreateKmsTag() (*model.CreateKmsTagResponse, *def.HttpResponseDef)
func GenRespForCreateParametersForImport ¶
func GenRespForCreateParametersForImport() (*model.CreateParametersForImportResponse, *def.HttpResponseDef)
func GenRespForCreateRandom ¶
func GenRespForCreateRandom() (*model.CreateRandomResponse, *def.HttpResponseDef)
func GenRespForDecryptData ¶
func GenRespForDecryptData() (*model.DecryptDataResponse, *def.HttpResponseDef)
func GenRespForDecryptDatakey ¶
func GenRespForDecryptDatakey() (*model.DecryptDatakeyResponse, *def.HttpResponseDef)
func GenRespForDeleteImportedKeyMaterial ¶
func GenRespForDeleteImportedKeyMaterial() (*model.DeleteImportedKeyMaterialResponse, *def.HttpResponseDef)
func GenRespForDeleteKey ¶
func GenRespForDeleteKey() (*model.DeleteKeyResponse, *def.HttpResponseDef)
func GenRespForDeleteTag ¶
func GenRespForDeleteTag() (*model.DeleteTagResponse, *def.HttpResponseDef)
func GenRespForDisableKey ¶
func GenRespForDisableKey() (*model.DisableKeyResponse, *def.HttpResponseDef)
func GenRespForDisableKeyRotation ¶
func GenRespForDisableKeyRotation() (*model.DisableKeyRotationResponse, *def.HttpResponseDef)
func GenRespForEnableKey ¶
func GenRespForEnableKey() (*model.EnableKeyResponse, *def.HttpResponseDef)
func GenRespForEnableKeyRotation ¶
func GenRespForEnableKeyRotation() (*model.EnableKeyRotationResponse, *def.HttpResponseDef)
func GenRespForEncryptData ¶
func GenRespForEncryptData() (*model.EncryptDataResponse, *def.HttpResponseDef)
func GenRespForEncryptDatakey ¶
func GenRespForEncryptDatakey() (*model.EncryptDatakeyResponse, *def.HttpResponseDef)
func GenRespForImportKeyMaterial ¶
func GenRespForImportKeyMaterial() (*model.ImportKeyMaterialResponse, *def.HttpResponseDef)
func GenRespForListGrants ¶
func GenRespForListGrants() (*model.ListGrantsResponse, *def.HttpResponseDef)
func GenRespForListKeyDetail ¶
func GenRespForListKeyDetail() (*model.ListKeyDetailResponse, *def.HttpResponseDef)
func GenRespForListKeys ¶
func GenRespForListKeys() (*model.ListKeysResponse, *def.HttpResponseDef)
func GenRespForListKmsByTags ¶
func GenRespForListKmsByTags() (*model.ListKmsByTagsResponse, *def.HttpResponseDef)
func GenRespForListKmsTags ¶
func GenRespForListKmsTags() (*model.ListKmsTagsResponse, *def.HttpResponseDef)
func GenRespForListRetirableGrants ¶
func GenRespForListRetirableGrants() (*model.ListRetirableGrantsResponse, *def.HttpResponseDef)
func GenRespForShowKeyRotationStatus ¶
func GenRespForShowKeyRotationStatus() (*model.ShowKeyRotationStatusResponse, *def.HttpResponseDef)
func GenRespForShowKmsTags ¶
func GenRespForShowKmsTags() (*model.ShowKmsTagsResponse, *def.HttpResponseDef)
func GenRespForShowUserInstances ¶
func GenRespForShowUserInstances() (*model.ShowUserInstancesResponse, *def.HttpResponseDef)
func GenRespForShowUserQuotas ¶
func GenRespForShowUserQuotas() (*model.ShowUserQuotasResponse, *def.HttpResponseDef)
func GenRespForShowVersion ¶
func GenRespForShowVersion() (*model.ShowVersionResponse, *def.HttpResponseDef)
func GenRespForShowVersions ¶
func GenRespForShowVersions() (*model.ShowVersionsResponse, *def.HttpResponseDef)
func GenRespForUpdateKeyAlias ¶
func GenRespForUpdateKeyAlias() (*model.UpdateKeyAliasResponse, *def.HttpResponseDef)
func GenRespForUpdateKeyDescription ¶
func GenRespForUpdateKeyDescription() (*model.UpdateKeyDescriptionResponse, *def.HttpResponseDef)
func GenRespForUpdateKeyRotationInterval ¶
func GenRespForUpdateKeyRotationInterval() (*model.UpdateKeyRotationIntervalResponse, *def.HttpResponseDef)
func KmsClientBuilder ¶
func KmsClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type KmsClient ¶
type KmsClient struct {
// contains filtered or unexported fields
}
func NewKmsClient ¶
func NewKmsClient(hcClient *http_client.HcHttpClient) *KmsClient
func (*KmsClient) BatchCreateKmsTags ¶
func (c *KmsClient) BatchCreateKmsTags(request *model.BatchCreateKmsTagsRequest) (*model.BatchCreateKmsTagsResponse, error)
- 功能介绍:批量添加删除密钥标签。
func (*KmsClient) CancelGrant ¶
func (c *KmsClient) CancelGrant(request *model.CancelGrantRequest) (*model.CancelGrantResponse, error)
- 功能介绍:撤销授权,授权用户撤销被授权用户操作密钥的权限。 - 说明: - 创建密钥的用户才能撤销该密钥授权。
func (*KmsClient) CancelKeyDeletion ¶
func (c *KmsClient) CancelKeyDeletion(request *model.CancelKeyDeletionRequest) (*model.CancelKeyDeletionResponse, error)
- 功能介绍:取消计划删除密钥。 - 说明:密钥处于“计划删除”状态才能取消计划删除密钥。
func (*KmsClient) CancelSelfGrant ¶
func (c *KmsClient) CancelSelfGrant(request *model.CancelSelfGrantRequest) (*model.CancelSelfGrantResponse, error)
- 功能介绍:退役授权,表示被授权用户不再具有授权密钥的操作权。 例如:用户A授权用户B可以操作密钥A/key,同时授权用户C可以撤销该授权, 那么用户A、B、C均可退役该授权,退役授权后,用户B不再可以使用A/key。 - 须知: 可执行退役授权的主体包括: - 创建授权的用户; - 授权中retiring_principal指向的用户; - 当授权的操作列表中包含retire-grant时,grantee_principal指向的用户。
func (*KmsClient) CreateDatakey ¶
func (c *KmsClient) CreateDatakey(request *model.CreateDatakeyRequest) (*model.CreateDatakeyResponse, error)
- 功能介绍:创建数据密钥,返回结果包含明文和密文。
func (*KmsClient) CreateDatakeyWithoutPlaintext ¶
func (c *KmsClient) CreateDatakeyWithoutPlaintext(request *model.CreateDatakeyWithoutPlaintextRequest) (*model.CreateDatakeyWithoutPlaintextResponse, error)
- 功能介绍:创建数据密钥,返回结果只包含密文。
func (*KmsClient) CreateGrant ¶
func (c *KmsClient) CreateGrant(request *model.CreateGrantRequest) (*model.CreateGrantResponse, error)
- 功能介绍:创建授权,被授权用户可以对授权密钥进行操作。 - 说明: - 服务默认主密钥(密钥别名后缀为“/default”)不可以授权。
func (*KmsClient) CreateKey ¶
func (c *KmsClient) CreateKey(request *model.CreateKeyRequest) (*model.CreateKeyResponse, error)
- 功能介绍:创建用户主密钥,可用来加密数据密钥。 - 说明: 别名“/default”为服务默认主密钥的后缀名,由服务自动创建。因此用户创建的主密钥别名不能与服务默认主密钥的别名相同,即后缀名不能为“/default”。对于开通企业项目的用户,服务默认主密钥属于且只能属于默认企业项目下,且不支持企业资源的迁入迁出。服务默认主密钥为用户提供基础的云上加密功能,满足合规要求。因此,在企业多项目下,其他非默认企业项目下的用户均可使用该密钥。若客户有企业管理资源诉求,请自行创建和使用密钥。
func (*KmsClient) CreateKmsTag ¶
func (c *KmsClient) CreateKmsTag(request *model.CreateKmsTagRequest) (*model.CreateKmsTagResponse, error)
- 功能介绍:添加密钥标签。
func (*KmsClient) CreateParametersForImport ¶
func (c *KmsClient) CreateParametersForImport(request *model.CreateParametersForImportRequest) (*model.CreateParametersForImportResponse, error)
- 功能介绍:获取导入密钥的必要参数,包括密钥导入令牌和密钥加密公钥。 - 说明:返回的公钥类型默认为RSA_2048。
func (*KmsClient) CreateRandom ¶
func (c *KmsClient) CreateRandom(request *model.CreateRandomRequest) (*model.CreateRandomResponse, error)
- 功能介绍: 生成8~8192bit范围内的随机数。 生成512bit的随机数。
func (*KmsClient) DecryptData ¶
func (c *KmsClient) DecryptData(request *model.DecryptDataRequest) (*model.DecryptDataResponse, error)
- 功能介绍:解密数据。
func (*KmsClient) DecryptDatakey ¶
func (c *KmsClient) DecryptDatakey(request *model.DecryptDatakeyRequest) (*model.DecryptDatakeyResponse, error)
- 功能介绍:解密数据密钥,用指定的主密钥解密数据密钥。
func (*KmsClient) DeleteImportedKeyMaterial ¶
func (c *KmsClient) DeleteImportedKeyMaterial(request *model.DeleteImportedKeyMaterialRequest) (*model.DeleteImportedKeyMaterialResponse, error)
- 功能介绍:删除密钥材料信息。
func (*KmsClient) DeleteKey ¶
func (c *KmsClient) DeleteKey(request *model.DeleteKeyRequest) (*model.DeleteKeyResponse, error)
- 功能介绍:计划多少天后删除密钥,可设置7天~1096天内删除密钥。
func (*KmsClient) DeleteTag ¶
func (c *KmsClient) DeleteTag(request *model.DeleteTagRequest) (*model.DeleteTagResponse, error)
- 功能介绍:删除密钥标签。
func (*KmsClient) DisableKey ¶
func (c *KmsClient) DisableKey(request *model.DisableKeyRequest) (*model.DisableKeyResponse, error)
- 功能介绍:禁用密钥,密钥禁用后不可以使用。 - 说明:密钥为启用状态才能禁用密钥。
func (*KmsClient) DisableKeyRotation ¶
func (c *KmsClient) DisableKeyRotation(request *model.DisableKeyRotationRequest) (*model.DisableKeyRotationResponse, error)
- 功能介绍:关闭用户主密钥轮换。
func (*KmsClient) EnableKey ¶
func (c *KmsClient) EnableKey(request *model.EnableKeyRequest) (*model.EnableKeyResponse, error)
- 功能介绍:启用密钥,密钥启用后才可以使用。 - 说明:密钥为禁用状态才能启用密钥。
func (*KmsClient) EnableKeyRotation ¶
func (c *KmsClient) EnableKeyRotation(request *model.EnableKeyRotationRequest) (*model.EnableKeyRotationResponse, error)
- 功能介绍:开启用户主密钥轮换。 - 说明: - 开启密钥轮换后,默认轮询间隔时间为365天。 - 默认主密钥及外部导入密钥不支持轮换操作。
func (*KmsClient) EncryptData ¶
func (c *KmsClient) EncryptData(request *model.EncryptDataRequest) (*model.EncryptDataResponse, error)
- 功能介绍:加密数据,用指定的用户主密钥加密数据。
func (*KmsClient) EncryptDatakey ¶
func (c *KmsClient) EncryptDatakey(request *model.EncryptDatakeyRequest) (*model.EncryptDatakeyResponse, error)
- 功能介绍:加密数据密钥,用指定的主密钥加密数据密钥。
func (*KmsClient) ImportKeyMaterial ¶
func (c *KmsClient) ImportKeyMaterial(request *model.ImportKeyMaterialRequest) (*model.ImportKeyMaterialResponse, error)
- 功能介绍:导入密钥材料。
func (*KmsClient) ListGrants ¶
func (c *KmsClient) ListGrants(request *model.ListGrantsRequest) (*model.ListGrantsResponse, error)
- 功能介绍:查询密钥的授权列表。
func (*KmsClient) ListKeyDetail ¶
func (c *KmsClient) ListKeyDetail(request *model.ListKeyDetailRequest) (*model.ListKeyDetailResponse, error)
- 功能介绍:查询密钥详细信息。
func (*KmsClient) ListKeys ¶
func (c *KmsClient) ListKeys(request *model.ListKeysRequest) (*model.ListKeysResponse, error)
- 功能介绍:查询用户所有密钥列表。
func (*KmsClient) ListKmsByTags ¶
func (c *KmsClient) ListKmsByTags(request *model.ListKmsByTagsRequest) (*model.ListKmsByTagsResponse, error)
- 功能介绍:查询密钥实例。通过标签过滤,查询指定用户主密钥的详细信息。
func (*KmsClient) ListKmsTags ¶
func (c *KmsClient) ListKmsTags(request *model.ListKmsTagsRequest) (*model.ListKmsTagsResponse, error)
- 功能介绍:查询用户在指定项目下的所有标签集合。
func (*KmsClient) ListRetirableGrants ¶
func (c *KmsClient) ListRetirableGrants(request *model.ListRetirableGrantsRequest) (*model.ListRetirableGrantsResponse, error)
- 功能介绍:查询用户可以退役的授权列表。
func (*KmsClient) ShowKeyRotationStatus ¶
func (c *KmsClient) ShowKeyRotationStatus(request *model.ShowKeyRotationStatusRequest) (*model.ShowKeyRotationStatusResponse, error)
- 功能介绍:查询用户主密钥轮换状态。
func (*KmsClient) ShowKmsTags ¶
func (c *KmsClient) ShowKmsTags(request *model.ShowKmsTagsRequest) (*model.ShowKmsTagsResponse, error)
- 功能介绍:查询密钥标签。
func (*KmsClient) ShowUserInstances ¶
func (c *KmsClient) ShowUserInstances(request *model.ShowUserInstancesRequest) (*model.ShowUserInstancesResponse, error)
- 功能介绍:查询实例数,获取用户已经创建的用户主密钥数量。
func (*KmsClient) ShowUserQuotas ¶
func (c *KmsClient) ShowUserQuotas(request *model.ShowUserQuotasRequest) (*model.ShowUserQuotasResponse, error)
- 功能介绍:查询配额,查询用户可以创建的用户主密钥配额总数及当前使用量信息。
func (*KmsClient) ShowVersion ¶
func (c *KmsClient) ShowVersion(request *model.ShowVersionRequest) (*model.ShowVersionResponse, error)
- 功能介绍:查指定API版本信息。
func (*KmsClient) ShowVersions ¶
func (c *KmsClient) ShowVersions(request *model.ShowVersionsRequest) (*model.ShowVersionsResponse, error)
- 功能介绍:查询API版本信息列表。
func (*KmsClient) UpdateKeyAlias ¶
func (c *KmsClient) UpdateKeyAlias(request *model.UpdateKeyAliasRequest) (*model.UpdateKeyAliasResponse, error)
- 功能介绍:修改用户主密钥别名。 - 说明: - 服务默认主密钥(密钥别名后缀为“/default”)不可以修改。 - 密钥处于“计划删除”状态,密钥别名不可以修改。
func (*KmsClient) UpdateKeyDescription ¶
func (c *KmsClient) UpdateKeyDescription(request *model.UpdateKeyDescriptionRequest) (*model.UpdateKeyDescriptionResponse, error)
- 功能介绍:修改用户主密钥描述信息。 - 说明: - 服务默认主密钥(密钥别名后缀为“/default”)不可以修改。 - 密钥处于“计划删除”状态,密钥描述不可以修改。
func (*KmsClient) UpdateKeyRotationInterval ¶
func (c *KmsClient) UpdateKeyRotationInterval(request *model.UpdateKeyRotationIntervalRequest) (*model.UpdateKeyRotationIntervalResponse, error)
- 功能介绍:修改用户主密钥轮换周期。