ssh

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SshExec

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

func NewSshExecWithAuth

func NewSshExecWithAuth(logger *utils.Logger, user string) *SshExec

func NewSshExecWithKeyFile

func NewSshExecWithKeyFile(logger *utils.Logger, user string, file string) *SshExec

func (*SshExec) ConnectAndExec

func (s *SshExec) ConnectAndExec(host string, commands []string, timeoutMinutes int, useSudo bool) ([]string, error)

This function was based from https://github.com/coreos/etcd-manager/blob/master/main.go

Jump to

Keyboard shortcuts

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