Documentation
¶
Index ¶
Constants ¶
View Source
const ( AUTH_METHOD_NONE = "none" AUTH_METHOD_PASSWORD = "password" AUTH_METHOD_KEY = "key" )
Variables ¶
This section is empty.
Functions ¶
func NewChallenger ¶
func NewChallenger(config *ChallengerConfig) (certifier.ACMEChallenger, error)
Types ¶
type ChallengerConfig ¶
type ChallengerConfig struct {
ServerConfig
// 跳板机配置数组。
JumpServers []ServerConfig `json:"jumpServers,omitempty"`
// 是否回退使用 SCP。
UseSCP bool `json:"useSCP,omitempty"`
// 网站根目录路径。
WebRootPath string `json:"webRootPath"`
}
type ServerConfig ¶
type ServerConfig struct {
// SSH 主机。
// 零值时默认值 "localhost"。
SshHost string `json:"sshHost,omitempty"`
// SSH 端口。
// 零值时默认值 22。
SshPort int32 `json:"sshPort,omitempty"`
// SSH 认证方式。
// 可取值 "none"、"password"、"key"。
// 零值时根据有无密码或私钥字段决定。
SshAuthMethod string `json:"sshAuthMethod,omitempty"`
// SSH 登录用户名。
// 零值时默认值 "root"。
SshUsername string `json:"sshUsername,omitempty"`
// SSH 登录密码。
SshPassword string `json:"sshPassword,omitempty"`
// SSH 登录私钥。
SshKey string `json:"sshKey,omitempty"`
// SSH 登录私钥口令。
SshKeyPassphrase string `json:"sshKeyPassphrase,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.