Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSSHKeyBySshKeygen ¶
func CreateSSHKeyBySshKeygen() error
func GetLocalSSHPrivateKey ¶
func GetLocalSSHPublicKey ¶
func SaveSSHKey ¶
SaveSSHKey 保存ssh密钥到本机.ssh/ name 是"id_rsa", "id_ecdsa", "id_ed25519" 之一
Types ¶
type RemoteClient ¶
type RemoteClient interface {
Close() error
// todo...
UploadFiles(paths []string, target string) error
IoUploadFile(reader io.ReadCloser, target string) error
Download(target, local string) error
DeployGateway(hostinfo *model.ServerInfo) error
UpdateConfig(hostinfo *model.ServerInfo) error
GetConfig() (*model.ServerInfo, error)
}
func NewSSHClient ¶
func NewSSHClient(gateway *model.GatewayHost, onlyTestLink bool) (RemoteClient, error)
Click to show internal directories.
Click to hide internal directories.