ssh

package
v0.0.0-...-5f4467c Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2017 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSH

type SSH struct {
	// contains filtered or unexported fields
}

func Connect

func Connect(host string, args []string) (*SSH, error)

func New

func New() *SSH

func (*SSH) Close

func (s *SSH) Close() error

func (*SSH) Connect

func (s *SSH) Connect(host string, args []string) error

func (*SSH) ControlAlive

func (s *SSH) ControlAlive() bool

func (*SSH) Execute

func (s *SSH) Execute(cmd string, stdin io.Reader, stdout, stderr io.Writer) error

func (*SSH) ExecuteCmd

func (s *SSH) ExecuteCmd(cmd *exec.Cmd, stdin io.Reader, stdout, stderr io.Writer) error

func (*SSH) GetFile

func (s *SSH) GetFile(source, dest string) error

func (*SSH) PutFiles

func (s *SSH) PutFiles(dest string, sources ...string) error

Jump to

Keyboard shortcuts

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