Versions in this module Expand all Collapse all v1 v1.0.0 Oct 3, 2024 Changes in this version + func LoadAuthorizedKey(p string) (pubKey ssh.PublicKey, err error) + func LoadKnownHosts(keyPath string) (pubKey ssh.PublicKey, err error) + func LoadPrivateKey(p string) (signer ssh.Signer, err error) + type Logger struct + func NewLogger(lg *zap.Logger) *Logger + func (self *Logger) StdLogger() *log.Logger + func (self *Logger) Write(p []byte) (int, error) + type Proxy struct + Logger *Logger + SSH_Address string + SSH_KnownHosts string + SSH_Password string + SSH_PrivateKey string + SSH_User string + Socks5Password string + Socks5User string + func LoadProxy(fp string, key string, logger *zap.Logger) (config *Proxy, err error) + func (self *Proxy) AuthMethods() string + func (self *Proxy) Close() (err error) + func (self *Proxy) Resolve(ctx context.Context, name string) (c context.Context, ip net.IP, err error) + func (self *Proxy) Socks5Config() (config *socks5.Config)