{"modulePath":"github.com/https-cert/deploy","version":"v0.5.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package client\n\n## Types\n\n```go\ntype CertDeployer struct {\n\t// contains filtered or unexported fields\n}\n```\nCertDeployer 证书部署器\n\n```go\nfunc NewCertDeployer(client *Client) *CertDeployer\n```\nNewCertDeployer 创建证书部署器\n\n```go\nfunc (cd *CertDeployer) DeployCertificate(domain, url string) error\n```\nDeployCertificate 部署证书（同时部署到 Nginx 和 Apache，根据配置）\n\n```go\nfunc (cd *CertDeployer) DeployCertificateToApache(domain, url string) error\n```\nDeployCertificateToApache 仅部署证书到 Apache\n\n```go\nfunc (cd *CertDeployer) DeployCertificateToNginx(domain, url string) error\n```\nDeployCertificateToNginx 仅部署证书到 Nginx\n\n```go\nfunc (cd *CertDeployer) DeployCertificateToRustFS(domain, url string) error\n```\nDeployCertificateToRustFS 仅部署证书到 RustFS\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClient(ctx context.Context) (*Client, error)\n```\n\n```go\nfunc (c *Client) GetAccessKey() string\n```\nGetAccessKey 获取访问密钥\n\n```go\nfunc (c *Client) GetClientID() string\n```\nGetClientID 获取客户端ID\n\n```go\nfunc (c *Client) GetServerURL() string\n```\nGetServerURL 获取服务器URL\n\n```go\nfunc (c *Client) SetHTTPServer(httpServer *server.HTTPServer)\n```\nSetHTTPServer 设置 HTTP 服务器（由 scheduler 调用）\n\n```go\nfunc (c *Client) Start()\n```\nStart 启动客户端连接\n\n```go\nfunc (c *Client) StartConnectNotify()\n```\nStartConnectNotify 启动连接通知 - 建立持久连接并通过心跳保持\n\n","path":"github.com/https-cert/deploy/internal/client","name":"client","synopsis":"","isRedistributable":true}
