Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployer ¶
type Deployer struct {
// contains filtered or unexported fields
}
func NewDeployer ¶
func NewDeployer(config *DeployerConfig) (*Deployer, error)
type DeployerConfig ¶
type DeployerConfig struct {
// 群晖 DSM 服务地址。
ServerUrl string `json:"serverUrl"`
// 群晖 DSM 用户名。
Username string `json:"username"`
// 群晖 DSM 用户密码。
Password string `json:"password"`
// 群晖 DSM 2FA TOTP 密钥。
TotpSecret string `json:"totpSecret,omitempty"`
// 是否允许不安全的连接。
AllowInsecureConnections bool `json:"allowInsecureConnections,omitempty"`
// 证书 ID 或描述。
// 选填。零值时表示新建证书;否则表示更新证书。
CertificateIdOrDescription string `json:"certificateIdOrDesc,omitempty"`
// 是否设为默认证书。
IsDefault bool `json:"isDefault,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.