nginx

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deploy

func Deploy(sourceDir, nginxPath, folderName, safeDomain string) error

Deploy 部署证书到 Nginx 目录并生成配置文件。

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

func GenerateNginxSSLConfig(nginxPath, folderName, safeDomain string) error

GenerateNginxSSLConfig 生成 Nginx SSL 配置文件

func IsNginxAvailable

func IsNginxAvailable() bool

IsNginxAvailable 检查nginx是否可用

func ReloadNginx

func ReloadNginx() error

ReloadNginx 重新加载nginx

func ReloadNginxWithContext

func ReloadNginxWithContext(parent context.Context) error

ReloadNginxWithContext 使用调用方上下文重新加载 Nginx。

func TestNginxConfig

func TestNginxConfig() error

TestNginxConfig 测试nginx配置

func TestNginxConfigWithContext

func TestNginxConfigWithContext(parent context.Context) error

TestNginxConfigWithContext 使用调用方上下文测试 Nginx 配置。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL