sshrunner

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidAuthType error message for invalid auth type
	ErrInvalidAuthType = "Invalid auth type : %s\n"
)

Functions

This section is empty.

Types

type SSHRunner

type SSHRunner struct {
	User       string
	Password   string
	SSHKeyPath string
	Host       string
	Port       int
}

SSHRunner execute command by ssh

func New

func New(user, password, sshKeyPath, host string, port int) *SSHRunner

func (*SSHRunner) SyncExec

func (sr *SSHRunner) SyncExec(input runner.Input) (*runner.Output, error)

SyncExec execute command sync

Jump to

Keyboard shortcuts

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