ssh

package
v0.0.0-...-7a1321c Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2015 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SshConn

type SshConn struct {
	Client *ssh.Client
}

func NewSshConn

func NewSshConn(c *common.Config) (conn *SshConn, err error)

func (*SshConn) ConnClose

func (c *SshConn) ConnClose()

func (*SshConn) Run

func (c *SshConn) Run(cmd string) (string, string, error)

Returns output from descryptors 1(result output) and 2( error output) and error/nil

func (*SshConn) Upload

func (c *SshConn) Upload(src, dst string) error

Jump to

Keyboard shortcuts

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