client

package
v0.0.0-...-df565ed Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	StdinPipe io.WriteCloser
	// contains filtered or unexported fields
}

Session is struct representing ssh Session

func NewSession

func NewSession(ip, port, user, privateKey string) (*Session, error)

NewSession returns new Session instance

func (*Session) Close

func (s *Session) Close()

Close close the session & connection

func (*Session) Get

func (s *Session) Get(abs string) ([]byte, error)

Get is func that get file contents

func (*Session) Scp

func (s *Session) Scp(content, abs string) error

Scp is func copy file to abs

Jump to

Keyboard shortcuts

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