Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeployResult ¶
type DeployResult = core.DeployerDeployResult
type Deployer ¶
type Deployer struct {
// contains filtered or unexported fields
}
func NewDeployer ¶
func NewDeployer(config *DeployerConfig) (*Deployer, error)
type DeployerConfig ¶
type DeployerConfig struct {
// Cloudflare API Token。
ApiToken string `json:"apiToken"`
// Cloudflare 环境。
// 选填。
// 零值时默认值 "production"。
Environment string `json:"environment,omitempty"`
// Cloudflare DNS 区域 ID。
ZoneId string `json:"zoneId"`
// Cloudflare 证书 ID。
// 选填。零值时表示新建证书;否则表示更新证书。
CertificateId string `json:"certificateId,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.