Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSLDeployerProvider ¶
type SSLDeployerProvider struct {
// contains filtered or unexported fields
}
func NewSSLDeployerProvider ¶
func NewSSLDeployerProvider(config *SSLDeployerProviderConfig) (*SSLDeployerProvider, error)
func (*SSLDeployerProvider) Deploy ¶
func (d *SSLDeployerProvider) Deploy(ctx context.Context, certPEM string, privkeyPEM string) (*core.SSLDeployResult, error)
func (*SSLDeployerProvider) SetLogger ¶
func (d *SSLDeployerProvider) SetLogger(logger *slog.Logger)
type SSLDeployerProviderConfig ¶
type SSLDeployerProviderConfig struct {
// 网宿云 AccessKeyId。
AccessKeyId string `json:"accessKeyId"`
// 网宿云 AccessKeySecret。
AccessKeySecret string `json:"accessKeySecret"`
// 网宿云 API Key。
ApiKey string `json:"apiKey"`
// 网宿云环境。
Environment string `json:"environment"`
// 加速域名(支持泛域名)。
Domain string `json:"domain"`
// 证书 ID。
// 选填。零值时表示新建证书;否则表示更新证书。
CertificateId string `json:"certificateId,omitempty"`
// Webhook ID。
// 选填。
WebhookId string `json:"webhookId,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.