client

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 28 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertDeployer

type CertDeployer struct {
	// contains filtered or unexported fields
}

CertDeployer 证书部署器

func NewCertDeployer

func NewCertDeployer(client *Client) *CertDeployer

NewCertDeployer 创建证书部署器

func (*CertDeployer) DeployCertificate

func (cd *CertDeployer) DeployCertificate(domain, url string) error

DeployCertificate 部署证书(同时部署到 Nginx 和 Apache,根据配置)

func (*CertDeployer) DeployCertificateToApache added in v0.5.0

func (cd *CertDeployer) DeployCertificateToApache(domain, url string) error

DeployCertificateToApache 仅部署证书到 Apache

func (*CertDeployer) DeployCertificateToNginx added in v0.5.0

func (cd *CertDeployer) DeployCertificateToNginx(domain, url string) error

DeployCertificateToNginx 仅部署证书到 Nginx

func (*CertDeployer) DeployCertificateToRustFS added in v0.5.0

func (cd *CertDeployer) DeployCertificateToRustFS(domain, url string) error

DeployCertificateToRustFS 仅部署证书到 RustFS

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context) (*Client, error)

func (*Client) GetAccessKey added in v0.5.0

func (c *Client) GetAccessKey() string

GetAccessKey 获取访问密钥

func (*Client) GetClientID added in v0.5.0

func (c *Client) GetClientID() string

GetClientID 获取客户端ID

func (*Client) GetServerURL added in v0.5.0

func (c *Client) GetServerURL() string

GetServerURL 获取服务器URL

func (*Client) SetHTTPServer added in v0.4.1

func (c *Client) SetHTTPServer(httpServer *server.HTTPServer)

SetHTTPServer 设置 HTTP 服务器(由 scheduler 调用)

func (*Client) Start added in v0.5.0

func (c *Client) Start()

Start 启动客户端连接

func (*Client) StartConnectNotify

func (c *Client) StartConnectNotify()

StartConnectNotify 启动连接通知 - 建立持久连接并通过心跳保持

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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