Documentation
¶
Index ¶
- Constants
- func DeployLocal(sourceDir, feiNiuPath, domain string) error
- func DeployLocalWithContext(ctx context.Context, sourceDir, feiNiuPath, domain string) error
- func DeployRemote(sourceDir, domain string, sshConfig *config.FeiNiuSSHConfig, ...) error
- func DeployRemoteWithContext(ctx context.Context, sourceDir, domain string, ...) error
- func TestFeiNiuConnection() error
- func TestFeiNiuConnectionWithContext(ctx context.Context) error
- func TestRemoteFeiNiuConnection(sshConfig *config.FeiNiuSSHConfig) error
- func TestRemoteFeiNiuConnectionWithContext(ctx context.Context, sshConfig *config.FeiNiuSSHConfig) error
Constants ¶
View Source
const FixedPath = "/usr/trim/var/trim_connect/ssls"
FixedPath 是飞牛 OS 本机证书固定部署目录。
Variables ¶
This section is empty.
Functions ¶
func DeployLocal ¶
DeployLocal 部署证书到飞牛本机目录。
func DeployLocalWithContext ¶
DeployLocalWithContext 使用调用方 context 部署证书到飞牛本机目录。
func DeployRemote ¶
func DeployRemote(sourceDir, domain string, sshConfig *config.FeiNiuSSHConfig, knownHostsFile string) error
DeployRemote 通过 SSH 将证书部署到未安装 anssl CLI 的飞牛 OS。
func DeployRemoteWithContext ¶
func DeployRemoteWithContext(ctx context.Context, sourceDir, domain string, sshConfig *config.FeiNiuSSHConfig, knownHostsFile string) error
DeployRemoteWithContext 通过 SSH 原子部署飞牛证书并响应调用方取消。
func TestFeiNiuConnection ¶
func TestFeiNiuConnection() error
TestFeiNiuConnection 根据配置测试本机或 SSH 远程飞牛部署环境。
func TestFeiNiuConnectionWithContext ¶
TestFeiNiuConnectionWithContext 使用调用方 context 测试本机或 SSH 远程飞牛环境。
func TestRemoteFeiNiuConnection ¶
func TestRemoteFeiNiuConnection(sshConfig *config.FeiNiuSSHConfig) error
TestRemoteFeiNiuConnection 验证 SSH 登录、sudo 权限和飞牛核心部署环境。
func TestRemoteFeiNiuConnectionWithContext ¶
func TestRemoteFeiNiuConnectionWithContext(ctx context.Context, sshConfig *config.FeiNiuSSHConfig) error
TestRemoteFeiNiuConnectionWithContext 使用调用方 context 验证远程飞牛环境。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.