Documentation
¶
Index ¶
- func Http(client *http.Client, proxyAddr string, insecureSkipVerify bool, ...) (err error)
- func Socks5Proxy(dial Dial, localAddr string, auths ...BasicAuth) (listener net.Listener, err error)
- func SshSignerFromPem(fp, password string) (signer ssh.Signer, err error)
- type BasicAuth
- type Dial
- type SshClient
- func (client *SshClient) Dial() (cli *ssh.Client, err error)
- func (client *SshClient) DialThrough(bastion *SshClient) (cli *ssh.Client, shutdown func(), err error)
- func (client *SshClient) Forward(localAddr, remoteAddr string) (listener net.Listener, err error)
- func (client *SshClient) RunCommand(cmd string) (bts []byte, err error)
- func (client *SshClient) Socks5Proxy(localAddr string, secs int64, auths ...BasicAuth) (shutdown func(), err error)
- func (client *SshClient) WithLogger(logger misc.LogIntf) *SshClient
- type SshConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Socks5Proxy ¶
Types ¶
type SshClient ¶
type SshClient struct {
// contains filtered or unexported fields
}
func NewSshClient ¶
func (*SshClient) DialThrough ¶
func (*SshClient) RunCommand ¶
func (*SshClient) Socks5Proxy ¶
type SshConfig ¶
type SshConfig struct { User string `mapstructure:"user"` Password string `mapstructure:"password"` PrivateKeyPath string `mapstructure:"private_key_path"` PrivateKeyPassword string `mapstructure:"private_key_password"` Addr string `mapstructure:"Addr"` Port string `mapstructure:"port"` TimeoutSecs int64 `mapstructure:"timeout_secs"` }
Click to show internal directories.
Click to hide internal directories.