Documentation
¶
Index ¶
- func CreateClientConfig(host *config.Host) *gossh.ClientConfig
- func FixSSHAuth() error
- func GetSSHLocalHost() string
- func GetTerminalWidth() int
- func NewAgent() (agent.Agent, error)
- func Start(tc *config.TaskConfig) error
- type Client
- func (c *Client) Connect(host *config.Host) (err error)
- func (c *Client) ConnectSftp(host *config.Host) (err error)
- func (c *Client) Download(remotePath, localPath string) (err error)
- func (c *Client) Execute(cmd string) (int, error)
- func (c *Client) ListFilesAndDirs(remotePath string) (items []string, err error)
- func (c *Client) MakeSession() (*ssh.Session, error)
- func (c *Client) RemoteProxy(listenAddr, serverAddr string) error
- func (c *Client) RequestAgentForwarding(session *ssh.Session) error
- func (c *Client) Script(path string) (int, error)
- func (c *Client) Shell(remoteListen, proxyServer string) error
- func (c *Client) UpdateTerminalSize(session *ssh.Session)
- func (c *Client) Upload(localPath, remotePath string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClientConfig ¶ added in v1.1.0
func CreateClientConfig(host *config.Host) *gossh.ClientConfig
func FixSSHAuth ¶
func FixSSHAuth() error
func GetSSHLocalHost ¶
func GetSSHLocalHost() string
func GetTerminalWidth ¶
func GetTerminalWidth() int
func Start ¶
func Start(tc *config.TaskConfig) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListFilesAndDirs ¶
func (*Client) RemoteProxy ¶ added in v1.1.0
func (*Client) RequestAgentForwarding ¶ added in v1.0.2
func (*Client) UpdateTerminalSize ¶
监听窗口大小变化,并自动调节
Click to show internal directories.
Click to hide internal directories.