cmd

package
v0.0.0-...-1a3c03a Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check()

Check 内置命令,检测已建立连接

func Connect

func Connect(user, password, host, port, timeout string)

Connect 内置命令,连接服务器

func Done

func Done()

Done 内置命令,等待并行任务完成

func Get

func Get(file string)

Get 内置命令,批量下载文件

func Put

func Put(file string, dstDir string)

Put 内置命令,批量上传文件

func Release

func Release(host string)

Release 内置命令,释放连接

func Remote

func Remote(cmd string)

Remote 内置命令,批量远程执行

Types

type Client

type Client struct {
	Cli      *ssh.Client
	HomePath string
}

Client 一个ssh客户端的相关参数集合

Jump to

Keyboard shortcuts

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