Documentation
¶
Index ¶
- func Deploy(sourceDir, nginxPath, folderName, safeDomain string) error
- func DeployAndReloadWithContext(ctx context.Context, sourceDir, nginxPath, folderName, safeDomain string) error
- func DeployWithContext(ctx context.Context, sourceDir, nginxPath, folderName, safeDomain string) error
- func GenerateNginxSSLConfig(nginxPath, folderName, safeDomain string) error
- func IsNginxAvailable() bool
- func ReloadNginx() error
- func ReloadNginxWithContext(parent context.Context) error
- func TestNginxConfig() error
- func TestNginxConfigWithContext(parent context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployAndReloadWithContext ¶
func DeployAndReloadWithContext(ctx context.Context, sourceDir, nginxPath, folderName, safeDomain string) error
DeployAndReloadWithContext 将配置生成、校验和 reload 纳入同一发布事务。
func DeployWithContext ¶
func DeployWithContext(ctx context.Context, sourceDir, nginxPath, folderName, safeDomain string) error
DeployWithContext 部署证书并将调用方 context 传递给原子发布事务。
func GenerateNginxSSLConfig ¶
GenerateNginxSSLConfig 生成 Nginx SSL 配置文件
func ReloadNginxWithContext ¶
ReloadNginxWithContext 使用调用方上下文重新加载 Nginx。
func TestNginxConfigWithContext ¶
TestNginxConfigWithContext 使用调用方上下文测试 Nginx 配置。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.