Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACMEChallenger ¶
type Notifier ¶
type Notifier interface { WithLogger // 发送通知。 // // 入参: // - ctx:上下文。 // - subject:通知主题。 // - message:通知内容。 // // 出参: // - res:发送结果。 // - err: 错误。 Notify(ctx context.Context, subject string, message string) (_res *NotifyResult, _err error) }
表示定义消息通知器的抽象类型接口。
type NotifyResult ¶
表示通知发送结果的数据结构。
type SSLDeployResult ¶
表示 SSL 证书部署结果的数据结构。
type SSLDeployer ¶
type SSLDeployer interface { WithLogger // 部署证书。 // // 入参: // - ctx:上下文。 // - certPEM:证书 PEM 内容。 // - privkeyPEM:私钥 PEM 内容。 // // 出参: // - res:部署结果。 // - err: 错误。 Deploy(ctx context.Context, certPEM string, privkeyPEM string) (_res *SSLDeployResult, _err error) }
表示定义 SSL 证书部署器的抽象类型接口。
type SSLManageUploadResult ¶
type SSLManageUploadResult struct { CertId string `json:"certId,omitempty"` CertName string `json:"certName,omitempty"` ExtendedData map[string]any `json:"extendedData,omitempty"` }
表示 SSL 证书管理上传结果的数据结构,包含上传后的证书 ID、名称和其他数据。
type SSLManager ¶
type SSLManager interface { WithLogger // 上传证书。 // // 入参: // - ctx:上下文。 // - certPEM:证书 PEM 内容。 // - privkeyPEM:私钥 PEM 内容。 // // 出参: // - res:上传结果。 // - err: 错误。 Upload(ctx context.Context, certPEM string, privkeyPEM string) (_res *SSLManageUploadResult, _err error) }
表示定义 SSL 证书管理器的抽象类型接口。 云服务商通常会提供 SSL 证书管理服务,可供用户集中管理证书。
type WithLogger ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.