v1

package
v0.1.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CcmClientBuilder

func CcmClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForCreateCertificate

func GenReqDefForCreateCertificate() *def.HttpRequestDef

func GenReqDefForCreateCertificateAuthority

func GenReqDefForCreateCertificateAuthority() *def.HttpRequestDef

func GenReqDefForCreateCertificateAuthorityObsAgency

func GenReqDefForCreateCertificateAuthorityObsAgency() *def.HttpRequestDef

func GenReqDefForCreateCertificateByCsr

func GenReqDefForCreateCertificateByCsr() *def.HttpRequestDef

func GenReqDefForDeleteCertificate

func GenReqDefForDeleteCertificate() *def.HttpRequestDef

func GenReqDefForDeleteCertificateAuthority

func GenReqDefForDeleteCertificateAuthority() *def.HttpRequestDef

func GenReqDefForDisableCertificateAuthority

func GenReqDefForDisableCertificateAuthority() *def.HttpRequestDef

func GenReqDefForDisableCertificateAuthorityCrl added in v0.1.23

func GenReqDefForDisableCertificateAuthorityCrl() *def.HttpRequestDef

func GenReqDefForEnableCertificateAuthority

func GenReqDefForEnableCertificateAuthority() *def.HttpRequestDef

func GenReqDefForEnableCertificateAuthorityCrl added in v0.1.23

func GenReqDefForEnableCertificateAuthorityCrl() *def.HttpRequestDef

func GenReqDefForExportCertificate

func GenReqDefForExportCertificate() *def.HttpRequestDef

func GenReqDefForExportCertificateAuthorityCertificate

func GenReqDefForExportCertificateAuthorityCertificate() *def.HttpRequestDef

func GenReqDefForExportCertificateAuthorityCsr

func GenReqDefForExportCertificateAuthorityCsr() *def.HttpRequestDef

func GenReqDefForImportCertificateAuthorityCertificate

func GenReqDefForImportCertificateAuthorityCertificate() *def.HttpRequestDef

func GenReqDefForIssueCertificateAuthorityCertificate

func GenReqDefForIssueCertificateAuthorityCertificate() *def.HttpRequestDef

func GenReqDefForListCertificate

func GenReqDefForListCertificate() *def.HttpRequestDef

func GenReqDefForListCertificateAuthority

func GenReqDefForListCertificateAuthority() *def.HttpRequestDef

func GenReqDefForListCertificateAuthorityObsBucket

func GenReqDefForListCertificateAuthorityObsBucket() *def.HttpRequestDef

func GenReqDefForParseCertificateSigningRequest

func GenReqDefForParseCertificateSigningRequest() *def.HttpRequestDef

func GenReqDefForRestoreCertificateAuthority

func GenReqDefForRestoreCertificateAuthority() *def.HttpRequestDef

func GenReqDefForRevokeCertificate

func GenReqDefForRevokeCertificate() *def.HttpRequestDef

func GenReqDefForRevokeCertificateAuthority

func GenReqDefForRevokeCertificateAuthority() *def.HttpRequestDef

func GenReqDefForShowCertificate

func GenReqDefForShowCertificate() *def.HttpRequestDef

func GenReqDefForShowCertificateAuthority

func GenReqDefForShowCertificateAuthority() *def.HttpRequestDef

func GenReqDefForShowCertificateAuthorityObsAgency

func GenReqDefForShowCertificateAuthorityObsAgency() *def.HttpRequestDef

func GenReqDefForShowCertificateAuthorityQuota

func GenReqDefForShowCertificateAuthorityQuota() *def.HttpRequestDef

func GenReqDefForShowCertificateQuota

func GenReqDefForShowCertificateQuota() *def.HttpRequestDef

Types

type CcmClient

type CcmClient struct {
	HcClient *http_client.HcHttpClient
}

func NewCcmClient

func NewCcmClient(hcClient *http_client.HcHttpClient) *CcmClient

func (*CcmClient) CreateCertificate

func (c *CcmClient) CreateCertificate(request *model.CreateCertificateRequest) (*model.CreateCertificateResponse, error)

CreateCertificate 申请证书

申请证书。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CreateCertificateAuthority

CreateCertificateAuthority 创建CA

创建CA,分以下三种情况: - 创建根CA,根据参数介绍中,填写必选值; - 创建从属CA,并需要直接激活该证书,根据参数介绍中,填写必选值; - 创建从属CA,不需要直接激活该证书,请求body中只需要缺少此三个参数之一即可:issuer_id、signature_algorithm、validity。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CreateCertificateAuthorityInvoker

func (c *CcmClient) CreateCertificateAuthorityInvoker(request *model.CreateCertificateAuthorityRequest) *CreateCertificateAuthorityInvoker

CreateCertificateAuthorityInvoker 创建CA

func (*CcmClient) CreateCertificateAuthorityObsAgency

CreateCertificateAuthorityObsAgency 创建委托

用户给PCA创建OBS委托授权,用于访问OBS桶,更新吊销列表。 > 用户所使用账号token需要具备安全管理员(secu_admin)权限。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CreateCertificateAuthorityObsAgencyInvoker

func (c *CcmClient) CreateCertificateAuthorityObsAgencyInvoker(request *model.CreateCertificateAuthorityObsAgencyRequest) *CreateCertificateAuthorityObsAgencyInvoker

CreateCertificateAuthorityObsAgencyInvoker 创建委托

func (*CcmClient) CreateCertificateByCsr

CreateCertificateByCsr 通过CSR签发证书

通过CSR签发证书。功能约束如下: - 1、当前默认参数如下:

  • CA 默认参数:
  • **keyUsage**: digitalSignature, keyCertSign, cRLSign,优先采用CSR中的参数;
  • **SignatureHashAlgorithm**: SHA384;
  • **PathLength**:0 (可自定义)。
  • 私有证书:
  • **keyUsage**: digitalSignature keyAgreement,优先采用CSR中的参数;
  • **SignatureHashAlgorithm**: SHA384;

- 2、当传入的type为**INTERMEDIATE_CA**时,创建出的从属CA证书,有以下限制:

  • 不占用CA配额。在查询CA列表时,不会返回该证书;
  • 只支持通过以下两个接口获取其信息:
  • GET /v1/private-certificate-authorities/{ca_id} 获取证书详情
  • POST /v1/private-certificate-authorities/{ca_id}/export 导出证书
  • 本接口返回的**certificate_id**即代表从属CA的**ca_id**;
  • 无法用于签发证书,密钥在用户侧。

- 3、当type为**ENTITY_CERT**时,创建出的私有证书,有以下特点:

  • 占用私有证书配额。在查询私有证书列表时,会返回该证书;
  • 除了导出时不包含密钥信息(密钥在用户端),其余用法与其它私有证书一致。

> 注:需要使用“\\r\\n”或“\\n”代替换行符,将CSR转换成一串字符,可参考示例请求。注:目前,证书的组织信息、公钥算法以及公钥内容等均来自CSR文件,暂不支持API传入。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CreateCertificateByCsrInvoker

func (c *CcmClient) CreateCertificateByCsrInvoker(request *model.CreateCertificateByCsrRequest) *CreateCertificateByCsrInvoker

CreateCertificateByCsrInvoker 通过CSR签发证书

func (*CcmClient) CreateCertificateInvoker

func (c *CcmClient) CreateCertificateInvoker(request *model.CreateCertificateRequest) *CreateCertificateInvoker

CreateCertificateInvoker 申请证书

func (*CcmClient) DeleteCertificate

func (c *CcmClient) DeleteCertificate(request *model.DeleteCertificateRequest) (*model.DeleteCertificateResponse, error)

DeleteCertificate 删除证书

删除证书。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) DeleteCertificateAuthority

DeleteCertificateAuthority 删除CA

计划删除CA。计划多少天后删除CA证书,可设置7天~30天内删除。 > 只有当证书状态为”待激活“或”已禁用“状态时,才可删除。”待激活“状态下,将会立即删除证书,不支持延迟删除。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) DeleteCertificateAuthorityInvoker

func (c *CcmClient) DeleteCertificateAuthorityInvoker(request *model.DeleteCertificateAuthorityRequest) *DeleteCertificateAuthorityInvoker

DeleteCertificateAuthorityInvoker 删除CA

func (*CcmClient) DeleteCertificateInvoker

func (c *CcmClient) DeleteCertificateInvoker(request *model.DeleteCertificateRequest) *DeleteCertificateInvoker

DeleteCertificateInvoker 删除证书

func (*CcmClient) DisableCertificateAuthority

DisableCertificateAuthority 禁用CA

禁用CA。 > 只有当证书处于\"已激活\"或\"已过期\"状态时,可进行禁用操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) DisableCertificateAuthorityCrl added in v0.1.23

DisableCertificateAuthorityCrl 禁用CRL

禁用当前CA的CRL。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) DisableCertificateAuthorityCrlInvoker added in v0.1.23

func (c *CcmClient) DisableCertificateAuthorityCrlInvoker(request *model.DisableCertificateAuthorityCrlRequest) *DisableCertificateAuthorityCrlInvoker

DisableCertificateAuthorityCrlInvoker 禁用CRL

func (*CcmClient) DisableCertificateAuthorityInvoker

func (c *CcmClient) DisableCertificateAuthorityInvoker(request *model.DisableCertificateAuthorityRequest) *DisableCertificateAuthorityInvoker

DisableCertificateAuthorityInvoker 禁用CA

func (*CcmClient) EnableCertificateAuthority

EnableCertificateAuthority 启用CA

启用CA。 > 注:只有当证书处于\"已禁用\"状态时,可进行启用操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) EnableCertificateAuthorityCrl added in v0.1.23

EnableCertificateAuthorityCrl 启用CRL

启用当前CA的CRL。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) EnableCertificateAuthorityCrlInvoker added in v0.1.23

func (c *CcmClient) EnableCertificateAuthorityCrlInvoker(request *model.EnableCertificateAuthorityCrlRequest) *EnableCertificateAuthorityCrlInvoker

EnableCertificateAuthorityCrlInvoker 启用CRL

func (*CcmClient) EnableCertificateAuthorityInvoker

func (c *CcmClient) EnableCertificateAuthorityInvoker(request *model.EnableCertificateAuthorityRequest) *EnableCertificateAuthorityInvoker

EnableCertificateAuthorityInvoker 启用CA

func (*CcmClient) ExportCertificate

func (c *CcmClient) ExportCertificate(request *model.ExportCertificateRequest) (*model.ExportCertificateResponse, error)

ExportCertificate 导出证书

导出证书。

  • 国际算法
  • 选择是否压缩时,分以下两种情况:
  • is_compressed为true时,返回文件压缩包,命名为:证书名称_type字段小写字母.zip,如”test_apache.zip“。
  • 系统生成密钥签发证书
  • type = \"**APACHE**\"时,压缩包中包含三个文件:**server.key**(密钥文件,内容为PEM格式,若导出证书时设置密码,则为加密后的私钥)、**chain.crt**(证书链,内容为PEM格式)、**server.crt**(证书,内容为PEM格式);
  • type = \"**IIS**\"时,压缩包中包含两个文件:**keystorePass.txt**(keystore口令,若导出证书时设置密码,则无此密码文件)、**server.pfx**(PFX证书,证书与证书链包含在同一个文件);
  • type = \"**NGINX**\"时,压缩包中包含两个文件:**server.key**(密钥文件,内容为PEM格式,若导出证书时设置密码,则为加密后的私钥)、**server.crt**(内容为PEM格式,证书与证书链包含在同一个文件);
  • type = \"**TOMCAT**\"时,压缩包中包含两个文件:**keystorePass.txt**(keystore口令,若导出证书时设置密码,则无此密码文件)、**server.jks**(JKX证书,证书与证书链包含在同一个文件);
  • type = \"**OTHER**\"时,压缩包中包含三个文件:**server.key**(密钥文件,内容为PEM格式,若导出证书时设置密码,则为加密后的私钥)、**chain.pem**(证书链)、**server.pem**(证书)。
  • 导入CSR签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**TOMCAT**\"时,压缩包中包含两个文件:**chain.crt**(证书链,内容为PEM格式)、**server.crt**(证书,内容为PEM格式);
  • type = \"**NGINX**\"时,压缩包中包含一个文件:**server.crt**(证书,内容为PEM格式);
  • type = \"**OTHER**\"时,压缩包中包含两个文件:**chain.pem**(证书链,内容为PEM格式)、**cert.pem**(证书,内容为PEM格式)。
  • is_compressed为false时,返回json格式,返回的具体参数如下:
  • 系统生成密钥签发证书
  • type = \"**APACHE**\"或\"**NGINX**\"或\"**OTHER**\"时,返回参数如下:
  • **certificate**(证书内容,PEM格式);
  • **certificate_chain**(证书链,PEM格式);
  • **private_key**(证书私钥,PEM格式,若导出证书时设置密码,则为加密后的私钥);
  • type = \"**IIS**\"或\"**TOMCAT**\"时,暂时未定义。
  • 导入CSR签发证书
  • type = \"**APACHE**\"或\"**NGINX**\"或\"**IIS**\"或\"**TOMCAT**\"或\"**OTHER**\"时,返回参数如下:
  • **certificate**(证书内容,PEM格式);
  • **certificate_chain**(证书链,PEM格式);
  • 国密算法(中国站)
  • 选择是否压缩和是否国密标准时,分以下四种情况:
  • is_compressed为true、is_sm_standard为true时,返回文件压缩包,命名为:证书名称_type字段小写字母.zip,如”test_apache.zip“。
  • 系统生成密钥签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,压缩包中包含五个文件:**chain.pem**(证书链,内容为PEM格式)、**signCert.key**(签名证书密钥文件,内容为PEM格式,若导出证书时设置密码,则为加密后的私钥)、**signCert.pem**(签名证书,内容为PEM格式)、**encSm2EnvelopedKey.key**(加密证书的国密标准SM2数字信封文件,内容为BASE64编码)、**encCert.pem**(加密证书,内容为PEM格式)。
  • 导入CSR签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,压缩包中包含四个文件:**chain.pem**(证书链,内容为PEM格式)、**signCert.pem**(签名证书,内容为PEM格式)、**encSm2EnvelopedKey.key**(加密证书的国密标准SM2数字信封文件,内容为BASE64编码)、**encCert.pem**(加密证书,内容为PEM格式)。
  • is_compressed为true、is_sm_standard为false时,返回文件压缩包,命名为:证书名称_type字段小写字母.zip,如”test_apache.zip“。
  • 系统生成密钥签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,压缩包中包含五个文件:**chain.pem**(证书链,内容为PEM格式)、**signCert.key**(签名证书密钥文件,内容为PEM格式,若导出证书时设置密码,则为加密后的私钥)、**signCert.pem**(签名证书,内容为PEM格式)、**encCert.key**(加密证书密钥文件,内容为PEM格式,若导出证书时设置密码,则为加密后的私钥)、**encCert.pem**(加密证书,内容为PEM格式)。
  • 导入CSR签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,压缩包中包含四个文件:**chain.pem**(证书链,内容为PEM格式)、**signCert.pem**(签名证书,内容为PEM格式)、**encCert.key**(加密证书密钥文件,内容为PEM格式)、**encCert.pem**(加密证书,内容为PEM格式)。
  • is_compressed为false、is_sm_standard为true时,返回json格式,返回的具体参数如下:
  • 系统生成密钥签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,返回参数如下:
  • **certificate_chain**(证书链,PEM格式);
  • **certificate**(签名证书内容,PEM格式);
  • **private_key**(签名证书私钥,PEM格式,若导出证书时设置密码,则为加密后的私钥);
  • **enc_certificate**(加密证书内容,PEM格式);
  • **enc_sm2_enveloped_key**(加密证书的国密GMT0009标准规范SM2数字信封文件,BASE64编码)。
  • 导入CSR签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,返回参数如下:
  • **certificate_chain**(证书链,PEM格式);
  • **certificate**(签名证书内容,PEM格式);
  • **enc_certificate**(加密证书内容,PEM格式);
  • **enc_sm2_enveloped_key**(加密证书的国密GMT0009标准规范SM2数字信封文件,BASE64编码)。
  • is_compressed为false、is_sm_standard为false时,返回json格式,返回的具体参数如下:
  • 系统生成密钥签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,返回参数如下:
  • **certificate_chain**(证书链,PEM格式);
  • **certificate**(签名证书内容,PEM格式);
  • **private_key**(签名证书私钥,PEM格式,若导出证书时设置密码,则为加密后的私钥);
  • **enc_certificate**(加密证书内容,PEM格式);
  • **enc_private_key**(加密证书私钥,PEM格式,若导出证书时设置密码,则为加密后的私钥)。
  • 导入CSR签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,返回参数如下:
  • **certificate_chain**(证书链,PEM格式);
  • **certificate**(签名证书内容,PEM格式);
  • **enc_certificate**(加密证书内容,PEM格式);
  • **enc_private_key**(加密证书私钥,PEM格式)。

> 只有当证书状态为“已签发”时,可进行导出操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ExportCertificateAuthorityCertificate

ExportCertificateAuthorityCertificate 导出CA证书

导出CA证书。 > 注:只有当证书处于\"已激活\"或\"已过期\"时,可进行导出操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ExportCertificateAuthorityCertificateInvoker

func (c *CcmClient) ExportCertificateAuthorityCertificateInvoker(request *model.ExportCertificateAuthorityCertificateRequest) *ExportCertificateAuthorityCertificateInvoker

ExportCertificateAuthorityCertificateInvoker 导出CA证书

func (*CcmClient) ExportCertificateAuthorityCsr

ExportCertificateAuthorityCsr 导出CA的证书签名请求(CSR)

导出CA的证书签名请求。 > 只有当CA处于\"待激活\"状态时,可导出证书签名请求。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ExportCertificateAuthorityCsrInvoker

func (c *CcmClient) ExportCertificateAuthorityCsrInvoker(request *model.ExportCertificateAuthorityCsrRequest) *ExportCertificateAuthorityCsrInvoker

ExportCertificateAuthorityCsrInvoker 导出CA的证书签名请求(CSR)

func (*CcmClient) ExportCertificateInvoker

func (c *CcmClient) ExportCertificateInvoker(request *model.ExportCertificateRequest) *ExportCertificateInvoker

ExportCertificateInvoker 导出证书

func (*CcmClient) ImportCertificateAuthorityCertificate

ImportCertificateAuthorityCertificate 导入CA证书

导入CA证书,使用本接口需要满足以下条件:

  • (1)证书为“待激活”状态的从属CA;
  • (2)导入的证书体必须满足以下条件:
  • a、该证书被签发时的证书签名请求必须是从PCA系统中导出;
  • b、其证书链虽然允许不上传,但后期若想要导出完整的证书链,应导入完整的证书链;
  • c、证书体与证书链必须为PEM编码。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ImportCertificateAuthorityCertificateInvoker

func (c *CcmClient) ImportCertificateAuthorityCertificateInvoker(request *model.ImportCertificateAuthorityCertificateRequest) *ImportCertificateAuthorityCertificateInvoker

ImportCertificateAuthorityCertificateInvoker 导入CA证书

func (*CcmClient) IssueCertificateAuthorityCertificate

IssueCertificateAuthorityCertificate 激活CA

激活CA。 > 只有当证书处于\"待激活\"状态时,可进行激活操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) IssueCertificateAuthorityCertificateInvoker

func (c *CcmClient) IssueCertificateAuthorityCertificateInvoker(request *model.IssueCertificateAuthorityCertificateRequest) *IssueCertificateAuthorityCertificateInvoker

IssueCertificateAuthorityCertificateInvoker 激活CA

func (*CcmClient) ListCertificate

func (c *CcmClient) ListCertificate(request *model.ListCertificateRequest) (*model.ListCertificateResponse, error)

ListCertificate 查询私有证书列表

查询私有证书列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ListCertificateAuthority

ListCertificateAuthority 查询CA列表

查询CA列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ListCertificateAuthorityInvoker

func (c *CcmClient) ListCertificateAuthorityInvoker(request *model.ListCertificateAuthorityRequest) *ListCertificateAuthorityInvoker

ListCertificateAuthorityInvoker 查询CA列表

func (*CcmClient) ListCertificateAuthorityObsBucket

ListCertificateAuthorityObsBucket 查询OBS桶列表

查询OBS桶列表。 > 只有用户创建了委托授权,方可使用此接口。创建委托授权参见本文档:**证书吊销处理>创建委托**。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ListCertificateAuthorityObsBucketInvoker

func (c *CcmClient) ListCertificateAuthorityObsBucketInvoker(request *model.ListCertificateAuthorityObsBucketRequest) *ListCertificateAuthorityObsBucketInvoker

ListCertificateAuthorityObsBucketInvoker 查询OBS桶列表

func (*CcmClient) ListCertificateInvoker

func (c *CcmClient) ListCertificateInvoker(request *model.ListCertificateRequest) *ListCertificateInvoker

ListCertificateInvoker 查询私有证书列表

func (*CcmClient) ParseCertificateSigningRequest

ParseCertificateSigningRequest 解析CSR

解析CSR。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ParseCertificateSigningRequestInvoker

func (c *CcmClient) ParseCertificateSigningRequestInvoker(request *model.ParseCertificateSigningRequestRequest) *ParseCertificateSigningRequestInvoker

ParseCertificateSigningRequestInvoker 解析CSR

func (*CcmClient) RestoreCertificateAuthority

RestoreCertificateAuthority 恢复CA

恢复CA,将处于“计划删除”状态的CA证书,重新恢复为“已禁用”状态。 > 注:只有处于“计划删除”状态的CA证书,才可进行恢复操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) RestoreCertificateAuthorityInvoker

func (c *CcmClient) RestoreCertificateAuthorityInvoker(request *model.RestoreCertificateAuthorityRequest) *RestoreCertificateAuthorityInvoker

RestoreCertificateAuthorityInvoker 恢复CA

func (*CcmClient) RevokeCertificate

func (c *CcmClient) RevokeCertificate(request *model.RevokeCertificateRequest) (*model.RevokeCertificateResponse, error)

RevokeCertificate 吊销证书

吊销证书。 > 注:当不想填写吊销理由时,请求body体请置为\"**{}**\",否则将会报错。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) RevokeCertificateAuthority

RevokeCertificateAuthority 吊销CA

吊销子CA。 > 注:当不想填写吊销理由时,请求body体请置为\"**{}**\",否则将会报错。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) RevokeCertificateAuthorityInvoker

func (c *CcmClient) RevokeCertificateAuthorityInvoker(request *model.RevokeCertificateAuthorityRequest) *RevokeCertificateAuthorityInvoker

RevokeCertificateAuthorityInvoker 吊销CA

func (*CcmClient) RevokeCertificateInvoker

func (c *CcmClient) RevokeCertificateInvoker(request *model.RevokeCertificateRequest) *RevokeCertificateInvoker

RevokeCertificateInvoker 吊销证书

func (*CcmClient) ShowCertificate

func (c *CcmClient) ShowCertificate(request *model.ShowCertificateRequest) (*model.ShowCertificateResponse, error)

ShowCertificate 查询证书详情

查询证书详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ShowCertificateAuthority

ShowCertificateAuthority 查询CA详情

查询CA详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ShowCertificateAuthorityInvoker

func (c *CcmClient) ShowCertificateAuthorityInvoker(request *model.ShowCertificateAuthorityRequest) *ShowCertificateAuthorityInvoker

ShowCertificateAuthorityInvoker 查询CA详情

func (*CcmClient) ShowCertificateAuthorityObsAgency

ShowCertificateAuthorityObsAgency 查看是否具有委托权限

查看是否具有委托权限。 > 用户所使用账号token需要具备安全管理员(secu_admin)权限。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ShowCertificateAuthorityObsAgencyInvoker

func (c *CcmClient) ShowCertificateAuthorityObsAgencyInvoker(request *model.ShowCertificateAuthorityObsAgencyRequest) *ShowCertificateAuthorityObsAgencyInvoker

ShowCertificateAuthorityObsAgencyInvoker 查看是否具有委托权限

func (*CcmClient) ShowCertificateAuthorityQuota

ShowCertificateAuthorityQuota 查询CA配额

查询CA证书配额。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ShowCertificateAuthorityQuotaInvoker

func (c *CcmClient) ShowCertificateAuthorityQuotaInvoker(request *model.ShowCertificateAuthorityQuotaRequest) *ShowCertificateAuthorityQuotaInvoker

ShowCertificateAuthorityQuotaInvoker 查询CA配额

func (*CcmClient) ShowCertificateInvoker

func (c *CcmClient) ShowCertificateInvoker(request *model.ShowCertificateRequest) *ShowCertificateInvoker

ShowCertificateInvoker 查询证书详情

func (*CcmClient) ShowCertificateQuota

ShowCertificateQuota 查询私有证书配额

查询私有证书配额。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ShowCertificateQuotaInvoker

func (c *CcmClient) ShowCertificateQuotaInvoker(request *model.ShowCertificateQuotaRequest) *ShowCertificateQuotaInvoker

ShowCertificateQuotaInvoker 查询私有证书配额

type CreateCertificateAuthorityInvoker

type CreateCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCertificateAuthorityInvoker) Invoke

type CreateCertificateAuthorityObsAgencyInvoker

type CreateCertificateAuthorityObsAgencyInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCertificateAuthorityObsAgencyInvoker) Invoke

type CreateCertificateByCsrInvoker

type CreateCertificateByCsrInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCertificateByCsrInvoker) Invoke

type CreateCertificateInvoker

type CreateCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCertificateInvoker) Invoke

type DeleteCertificateAuthorityInvoker

type DeleteCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteCertificateAuthorityInvoker) Invoke

type DeleteCertificateInvoker

type DeleteCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteCertificateInvoker) Invoke

type DisableCertificateAuthorityCrlInvoker added in v0.1.23

type DisableCertificateAuthorityCrlInvoker struct {
	*invoker.BaseInvoker
}

func (*DisableCertificateAuthorityCrlInvoker) Invoke added in v0.1.23

type DisableCertificateAuthorityInvoker

type DisableCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*DisableCertificateAuthorityInvoker) Invoke

type EnableCertificateAuthorityCrlInvoker added in v0.1.23

type EnableCertificateAuthorityCrlInvoker struct {
	*invoker.BaseInvoker
}

func (*EnableCertificateAuthorityCrlInvoker) Invoke added in v0.1.23

type EnableCertificateAuthorityInvoker

type EnableCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*EnableCertificateAuthorityInvoker) Invoke

type ExportCertificateAuthorityCertificateInvoker

type ExportCertificateAuthorityCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*ExportCertificateAuthorityCertificateInvoker) Invoke

type ExportCertificateAuthorityCsrInvoker

type ExportCertificateAuthorityCsrInvoker struct {
	*invoker.BaseInvoker
}

func (*ExportCertificateAuthorityCsrInvoker) Invoke

type ExportCertificateInvoker

type ExportCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*ExportCertificateInvoker) Invoke

type ImportCertificateAuthorityCertificateInvoker

type ImportCertificateAuthorityCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*ImportCertificateAuthorityCertificateInvoker) Invoke

type IssueCertificateAuthorityCertificateInvoker

type IssueCertificateAuthorityCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*IssueCertificateAuthorityCertificateInvoker) Invoke

type ListCertificateAuthorityInvoker

type ListCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCertificateAuthorityInvoker) Invoke

type ListCertificateAuthorityObsBucketInvoker

type ListCertificateAuthorityObsBucketInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCertificateAuthorityObsBucketInvoker) Invoke

type ListCertificateInvoker

type ListCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCertificateInvoker) Invoke

type ParseCertificateSigningRequestInvoker

type ParseCertificateSigningRequestInvoker struct {
	*invoker.BaseInvoker
}

func (*ParseCertificateSigningRequestInvoker) Invoke

type RestoreCertificateAuthorityInvoker

type RestoreCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*RestoreCertificateAuthorityInvoker) Invoke

type RevokeCertificateAuthorityInvoker

type RevokeCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*RevokeCertificateAuthorityInvoker) Invoke

type RevokeCertificateInvoker

type RevokeCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*RevokeCertificateInvoker) Invoke

type ShowCertificateAuthorityInvoker

type ShowCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCertificateAuthorityInvoker) Invoke

type ShowCertificateAuthorityObsAgencyInvoker

type ShowCertificateAuthorityObsAgencyInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCertificateAuthorityObsAgencyInvoker) Invoke

type ShowCertificateAuthorityQuotaInvoker

type ShowCertificateAuthorityQuotaInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCertificateAuthorityQuotaInvoker) Invoke

type ShowCertificateInvoker

type ShowCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCertificateInvoker) Invoke

type ShowCertificateQuotaInvoker

type ShowCertificateQuotaInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCertificateQuotaInvoker) Invoke

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL