feiniu

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: 19 Imported by: 0

Documentation

Index

Constants

View Source
const FixedPath = "/usr/trim/var/trim_connect/ssls"

FixedPath 是飞牛 OS 本机证书固定部署目录。

Variables

This section is empty.

Functions

func DeployLocal

func DeployLocal(sourceDir, feiNiuPath, domain string) error

DeployLocal 部署证书到飞牛本机目录。

func DeployLocalWithContext

func DeployLocalWithContext(ctx context.Context, sourceDir, feiNiuPath, domain string) error

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

func TestFeiNiuConnectionWithContext(ctx context.Context) error

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.

Jump to

Keyboard shortcuts

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