Documentation ¶
Index ¶
- func AddDialer(dialerName, uri string) (err error)
- func AddSSHKey(encodedKey string, passPhrase string) error
- func CheckSSHKey(encodedKey string, passPhrase string) error
- func Dial(dialerName, network, addr string) (net.Conn, error)
- func GetSSHKeys() (keys []control.SSHKey, err error)
- func Marshall(info DialerInfo) (result control.Dialer, err error)
- type Dialer
- type DialerInfo
- type SSHAddress
- type SSHConnector
- func (sshConnector *SSHConnector) Done() bool
- func (sshConnector *SSHConnector) Message(i int) string
- func (sshConnector *SSHConnector) MessageCount() int
- func (sshConnector *SSHConnector) Print(msg string)
- func (sshConnector *SSHConnector) Printf(format string, args ...interface{})
- func (sshConnector *SSHConnector) SetPassphrase(passphrase string) error
- func (sshConnector *SSHConnector) Status() control.ConnectStatus
- func (sshConnector *SSHConnector) Wait() error
- type SSHDialer
- func (sshDialer *SSHDialer) AddDialer(uri string) error
- func (sshDialer *SSHDialer) AddSSHKey(encodedKey string, passPhrase string) error
- func (sshDialer *SSHDialer) Connect() (*ssh.Client, error)
- func (sshDialer *SSHDialer) Dial(network, addr string) (net.Conn, error)
- func (sshDialer *SSHDialer) GetConnector(interactive bool) *SSHConnector
- func (sshDialer *SSHDialer) GetSSHKeys() (keys []control.SSHKey, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSSHKey ¶
CheckSSHKey/ verifies that the encodedKey can be decoded and converts it to a format that ssh.ParsePrivateKeyWithPassphrase can parse
func GetSSHKeys ¶
Types ¶
type Dialer ¶
Dialer is a generic interface which is used to establish a net.Conn
func NewSocks5Dialer ¶
type DialerInfo ¶
DialerInfo is the internal representation of a dialer
func ListDialers ¶
func ListDialers() (dialerInfos []DialerInfo, err error)
type SSHAddress ¶
type SSHAddress struct {
// contains filtered or unexported fields
}
type SSHConnector ¶
type SSHConnector struct {
// contains filtered or unexported fields
}
func GetConnector ¶
func GetConnector() (sshConnector *SSHConnector, err error)
func (*SSHConnector) Done ¶
func (sshConnector *SSHConnector) Done() bool
func (*SSHConnector) Message ¶
func (sshConnector *SSHConnector) Message(i int) string
func (*SSHConnector) MessageCount ¶
func (sshConnector *SSHConnector) MessageCount() int
func (*SSHConnector) Print ¶
func (sshConnector *SSHConnector) Print(msg string)
func (*SSHConnector) Printf ¶
func (sshConnector *SSHConnector) Printf(format string, args ...interface{})
func (*SSHConnector) SetPassphrase ¶
func (sshConnector *SSHConnector) SetPassphrase(passphrase string) error
func (*SSHConnector) Status ¶
func (sshConnector *SSHConnector) Status() control.ConnectStatus
func (*SSHConnector) Wait ¶
func (sshConnector *SSHConnector) Wait() error
type SSHDialer ¶
type SSHDialer struct {
// contains filtered or unexported fields
}
func NewSSHDialer ¶
func (*SSHDialer) GetConnector ¶
func (sshDialer *SSHDialer) GetConnector(interactive bool) *SSHConnector
Click to show internal directories.
Click to hide internal directories.