sshclient

package
v0.0.0-...-0a224c4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2016 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InteractiveSSH

func InteractiveSSH(dialTimeout time.Duration, sessionTimeout time.Duration, host string, port int, user string, password string,
	commandSlice []string, interactiveMap map[string]string) ([]string, error)

Types

type SSHCommandProxy

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

func CreateSSHCommandProxy

func CreateSSHCommandProxy(
	dialTimeout time.Duration,
	host string,
	port int,
	user string,
	password string,
	screenHeight int,
	screenWidth int,
	interactiveMap map[string]string) *SSHCommandProxy

func (*SSHCommandProxy) Connect

func (sshCommandProxy *SSHCommandProxy) Connect() (chan<- string, <-chan string, chan string, error)

func (*SSHCommandProxy) Disconnect

func (sshCommandProxy *SSHCommandProxy) Disconnect() error

type SSHStreamProxy

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

func CreateSSHStreamProxy

func CreateSSHStreamProxy(
	dialTimeout time.Duration,
	host string,
	port int,
	user string,
	password string,
	screenHeight int,
	screenWidth int) *SSHStreamProxy

func (*SSHStreamProxy) Connect

func (sshStreamProxy *SSHStreamProxy) Connect() (io.WriteCloser, io.Reader, io.Reader, error)

func (*SSHStreamProxy) Disconnect

func (sshStreamProxy *SSHStreamProxy) Disconnect() error

Jump to

Keyboard shortcuts

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