backend

package
v0.0.0-...-91bf8dc Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(hostname string, host string, methods ...ssh.AuthMethod) (*ssh.Client, error)

Connect establishes a connection between a host and the program

func ExecuteSSHCommand

func ExecuteSSHCommand(hostname string, hostip string, keyfilepath string, command string) []string

ExecuteSSHCommand used to run a command on a host through SSH

func KeyPair

func KeyPair(keyFile string) (ssh.AuthMethod, error)

KeyPair creates a keypair with a path file string

func SSHAgent

func SSHAgent() (ssh.AuthMethod, error)

SSHAgent creates a SSH Agent

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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