util

package
v0.0.0-...-d89cd05 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONNECT_RETRY_AMOUNT = 60
	EXECUTE_RETRY_AMOUNT = 20
)

Variables

View Source
var Logger = log.LoggerWithField(log.AuditLogger, "Type", "ssh")

Functions

func Connect

func Connect(sshUser string, hostAndPort string, sshKey string) (*ssh.Client, string)

func ExecuteSshCommand

func ExecuteSshCommand(conn *ssh.Client, addr string, cmd string) bool

func HighlightBytePosition

func HighlightBytePosition(f io.Reader, pos int64) (line, col int, highlight string)

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