sshclient

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHConnection

type SSHConnection struct {
	Timeout     time.Duration
	Username    string
	IP          string
	KeyLocation string
	VerboseMode bool
	ClientID    string
}

func (*SSHConnection) Collect

func (sh *SSHConnection) Collect(cmd string) (string, error)

func (*SSHConnection) Run

func (sh *SSHConnection) Run(cmd []string) error

func (*SSHConnection) ScpFrom

func (sh *SSHConnection) ScpFrom(source string, destination string) error

func (*SSHConnection) ScpTo

func (sh *SSHConnection) ScpTo(source string, destination string) error

func (*SSHConnection) ScpToWithData

func (sh *SSHConnection) ScpToWithData(data []byte, destination string) error

Jump to

Keyboard shortcuts

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