Documentation ¶
Index ¶
- Constants
- func NewDefaultKeyBasedAuth() []ssh.AuthMethod
- func NewKeyBasedAuth(keyFile string) []ssh.AuthMethod
- func NewPwdBasedAuth(pwd string) []ssh.AuthMethod
- func SafeNewKeyBasedAuth(keyFile string) ([]ssh.AuthMethod, error)
- func SafeNewPwdBasedAuth(pwd string) ([]ssh.AuthMethod, error)
- type LocalNode
- type Logger
- type Node
- type SSHConfig
- type SSHNode
- type Tunnel
Constants ¶
View Source
const ( LogLevelError = iota LogLevelWarning = iota LogLevelInfo = iota LogLevelVerbose = iota )
Variables ¶
This section is empty.
Functions ¶
func NewDefaultKeyBasedAuth ¶
func NewDefaultKeyBasedAuth() []ssh.AuthMethod
func NewKeyBasedAuth ¶
func NewKeyBasedAuth(keyFile string) []ssh.AuthMethod
func NewPwdBasedAuth ¶
func NewPwdBasedAuth(pwd string) []ssh.AuthMethod
func SafeNewKeyBasedAuth ¶
func SafeNewKeyBasedAuth(keyFile string) ([]ssh.AuthMethod, error)
func SafeNewPwdBasedAuth ¶
func SafeNewPwdBasedAuth(pwd string) ([]ssh.AuthMethod, error)
Types ¶
type LocalNode ¶
type LocalNode struct {
// contains filtered or unexported fields
}
LocalNode is used for running commands locally.
func NewLocalNode ¶
func NewLocalNode() *LocalNode
type SSHNode ¶
type SSHNode struct { Logger Logger // contains filtered or unexported fields }
func NewSSHNode ¶
func SafeNewSSHNode ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.