ssh

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Port = 22

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func NewConnection

func NewConnection(logger *log.Logger, output io.Writer, hostname string, port int, username string, key []byte) (*Connection, error)

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) EnsureConnected

func (c *Connection) EnsureConnected() error

func (*Connection) Mkdir added in v1.1.0

func (c *Connection) Mkdir(path string) error

func (*Connection) RunCommand

func (c *Connection) RunCommand(cmd string) error

func (*Connection) UploadFile

func (c *Connection) UploadFile(path, destName string) error

Jump to

Keyboard shortcuts

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