SSHClient

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCmd

func ExecuteCmd(client *SSHClient) bool

Create a new ssh.Session from the SSHClient and execute the SSHCommand

func PublicKeyFile

func PublicKeyFile(filepath string) ssh.AuthMethod

Return a ssh.AuthMethod from a keypair filepath

Types

type SSHClient

type SSHClient struct {
	Host   string
	Port   int
	Config *ssh.ClientConfig
	Cmd    *SSHCommand
}

type SSHCommand

type SSHCommand struct {
	Cmd    string
	Stdout string
	Stderr string
	Err    error
}

Jump to

Keyboard shortcuts

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