Documentation
¶
Index ¶
- type Certificate
- type DeleteCertificateRequest
- type DeleteCertificateResponse
- type DescribeCertificatesRequest
- type DescribeCertificatesResponse
- type Error
- type ResponseMeta
- type TencentCloudCertHandler
- func (TencentCloudCertHandler) CaddyModule() caddy.ModuleInfo
- func (h *TencentCloudCertHandler) DeleteCertificate(ctx context.Context, id string) error
- func (h *TencentCloudCertHandler) DescribeCertificates(ctx context.Context, domain string) (string, error)
- func (h *TencentCloudCertHandler) Handle(ctx context.Context, e caddy.Event) error
- func (h *TencentCloudCertHandler) Provision(ctx caddy.Context) error
- func (h *TencentCloudCertHandler) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (h *TencentCloudCertHandler) UpdateCertificateInstance(ctx context.Context, publicKey, privateKey, id string, DeployRecordId *uint64) error
- func (h *TencentCloudCertHandler) UploadCertificate(ctx context.Context, publicKey, privateKey string) error
- type UpdateCertificateInstanceRequest
- type UpdateCertificateInstanceResponse
- type UpdateSyncProgress
- type UpdateSyncProgressRegion
- type UploadCertificateRequest
- type UploadCertificateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type DeleteCertificateResponse ¶
type DeleteCertificateResponse struct {
Response struct {
ResponseMeta
DeleteResult bool `json:"DeleteResult,omitempty"`
TaskId string `json:"TaskId,omitempty"`
}
}
type DescribeCertificatesResponse ¶
type DescribeCertificatesResponse struct {
Response struct {
ResponseMeta
TotalCount uint64 `json:"TotalCount,omitempty"`
Certificates []Certificate `json:"Certificates,omitempty"`
}
}
type ResponseMeta ¶
type TencentCloudCertHandler ¶
type TencentCloudCertHandler struct {
// SecretId is the Tencent Cloud API access key ID for authentication
SecretId string `json:"secret_id"`
// SecretKey is the Tencent Cloud API access key for signature verification
SecretKey string `json:"secret_key"`
// AllowList specifies which domains are allowed to upload certificates
AllowList []string `json:"allow_list,omitempty"`
// BlockList specifies which domains are blocked from uploading certificates
BlockList []string `json:"block_list,omitempty"`
// TryDeleteOldCert determines whether to delete old certificates when updating
TryDeleteOldCert bool `json:"try_delete_old_cert,omitempty"`
// contains filtered or unexported fields
}
TencentCloudCertHandler handles automatic certificate upload to Tencent Cloud
func (TencentCloudCertHandler) CaddyModule ¶
func (TencentCloudCertHandler) CaddyModule() caddy.ModuleInfo
func (*TencentCloudCertHandler) DeleteCertificate ¶
func (h *TencentCloudCertHandler) DeleteCertificate(ctx context.Context, id string) error
func (*TencentCloudCertHandler) DescribeCertificates ¶
func (*TencentCloudCertHandler) Provision ¶
func (h *TencentCloudCertHandler) Provision(ctx caddy.Context) error
func (*TencentCloudCertHandler) UnmarshalCaddyfile ¶
func (h *TencentCloudCertHandler) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
func (*TencentCloudCertHandler) UpdateCertificateInstance ¶
func (*TencentCloudCertHandler) UploadCertificate ¶
func (h *TencentCloudCertHandler) UploadCertificate(ctx context.Context, publicKey, privateKey string) error
type UpdateCertificateInstanceRequest ¶
type UpdateCertificateInstanceRequest struct {
OldCertificateId string `json:"OldCertificateId,omitempty"`
ResourceTypes []string `json:"ResourceTypes,omitempty"`
CertificatePublicKey string `json:"CertificatePublicKey,omitempty"`
CertificatePrivateKey string `json:"CertificatePrivateKey,omitempty"`
ExpiringNotificationSwitch uint64 `json:"ExpiringNotificationSwitch,omitempty"`
Repeatable *bool `json:"Repeatable,omitempty"`
AllowDownload *bool `json:"AllowDownload,omitempty"`
}
type UpdateCertificateInstanceResponse ¶
type UpdateCertificateInstanceResponse struct {
Response struct {
ResponseMeta
DeployRecordId uint64 `json:"DeployRecordId,omitempty"`
DeployStatus int64 `json:"DeployStatus,omitempty"`
UpdateSyncProgress []UpdateSyncProgress `json:"UpdateSyncProgress,omitempty"`
}
}
type UpdateSyncProgress ¶
type UpdateSyncProgress struct {
ResourceType string `json:"ResourceType,omitempty"`
UpdateSyncProgressRegions []UpdateSyncProgressRegion `json:"UpdateSyncProgressRegions,omitempty"`
Status int64 `json:"Status,omitempty"`
}
type UploadCertificateResponse ¶
type UploadCertificateResponse struct {
Response struct {
ResponseMeta
CertificateId string `json:"CertificateId,omitempty"`
RepeatCertId string `json:"RepeatCertId,omitempty"`
}
}
Click to show internal directories.
Click to hide internal directories.