Documentation
¶
Index ¶
- func Deploy(sourceDir, caddyPath, folderName, safeDomain string) error
- func DeployAndReloadWithContext(ctx context.Context, ...) error
- func DeployWithContext(ctx context.Context, sourceDir, caddyPath, folderName, safeDomain string) error
- func GenerateCaddyTLSSnippet(caddyPath, folderName, safeDomain string) error
- func IsCaddyAvailable() bool
- func ReloadCaddyWithContext(parent context.Context, caddyConfig string) error
- func TestConnectionWithContext(ctx context.Context, caddyPath, caddyConfig string) error
- func ValidateCaddyConfigWithContext(parent context.Context, caddyConfig string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployAndReloadWithContext ¶
func DeployAndReloadWithContext(ctx context.Context, sourceDir, caddyPath, folderName, safeDomain, caddyConfig string) error
DeployAndReloadWithContext 将片段生成与可选 reload 纳入同一发布事务。
func DeployWithContext ¶
func DeployWithContext(ctx context.Context, sourceDir, caddyPath, folderName, safeDomain string) error
DeployWithContext 部署证书并将调用方 context 传递给原子发布事务。
func GenerateCaddyTLSSnippet ¶
GenerateCaddyTLSSnippet 生成可在站点 block 中 import 的 tls 指令片段。
func ReloadCaddyWithContext ¶
ReloadCaddyWithContext 通过 caddy reload 热加载配置。
func TestConnectionWithContext ¶
TestConnectionWithContext 检查 Caddy 目录,并在可用时校验 Caddyfile。
Types ¶
This section is empty.