Documentation ¶
Index ¶
- func Execute(host string, client *ssh.Client, cmd string) error
- func PublicKeyFile(file string) ssh.AuthMethod
- func Run(host string, client *ssh.Client, cmd string) (string, error)
- func SSHAgent() ssh.AuthMethod
- func SSHResultToString(result string) string
- type Conn
- type Manager
- type SSHResultHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublicKeyFile ¶
func PublicKeyFile(file string) ssh.AuthMethod
func SSHAgent ¶
func SSHAgent() ssh.AuthMethod
func SSHResultToString ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
the SSH Connection Manager for multiple connections
func NewManager ¶
create a new SSH Connection Manager by ssh file
type SSHResultHandler ¶
func SSHResultToStringHandler ¶
func SSHResultToStringHandler(handler SSHResultHandler) SSHResultHandler
Click to show internal directories.
Click to hide internal directories.