ssh

package
v0.0.0-...-3a64f8a Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2016 License: MIT Imports: 8 Imported by: 0

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