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 {
// 1Panel 服务地址。
ServerUrl string `json:"serverUrl"`
// 1Panel 版本。
// 可取值 "v1"、"v2"。
ApiVersion string `json:"apiVersion"`
// 1Panel 接口密钥。
ApiKey string `json:"apiKey"`
// 是否允许不安全的连接。
AllowInsecureConnections bool `json:"allowInsecureConnections,omitempty"`
// 是否自动重启。
AutoRestart bool `json:"autoRestart"`
}
Click to show internal directories.
Click to hide internal directories.