hostutil

package
v0.0.0-...-1d50e38 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const HostCheckTimeout = 10 * time.Second
View Source
const SSHTimeout = time.Minute * 10

Variables

This section is empty.

Functions

func CheckSSHResponse

func CheckSSHResponse(hostObject *host.Host, sshOptions []string) (bool, error)

CheckSSHResponse runs a test command over SSH to check whether or not the host appears to be up and accepting ssh connections. Returns true/false if the check passes or fails, or an error if the command cannot be attempted.

func RunRemoteScript

func RunRemoteScript(h *host.Host, script string, sshOptions []string) (string, error)

RunRemoteScript executes a shell script that already exists on the remote host, returning logs and any errors that occur. Logs may still be returned for some errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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