utils

package
v0.0.0-...-9f64d57 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ECHO          = 53
	TTY_OP_ISPEED = 128
	TTY_OP_OSPEED = 129
)

Variables

This section is empty.

Functions

func GetDefaultDSAFilePath

func GetDefaultDSAFilePath() string

func GetDefaultRSAFilePath

func GetDefaultRSAFilePath() string

func GetInstances

func GetInstances(c []string) ([]*ec2.Instance, error)

func GetUsername

func GetUsername() string

GetUsername return the current username for the running user or empty string in case error

func RenderOutput

func RenderOutput(header, content string, quite bool)

func SshExec

func SshExec(hostaddr, username, password, rsaFilePath, dsaFilePath, cmd string, timeout int) (err error, rc int, stdout, stderr string)

Types

type Results

type Results struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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