Function
NewSSHTun
(sh models.Shell, timeouts core.Timeouts)
Source from the content-addressed store, hash-verified
| 18 | } |
| 19 | |
| 20 | func NewSSHTun(sh models.Shell, timeouts core.Timeouts) (error, Session) { |
| 21 | err, s := NewSSH(sh, timeouts) |
| 22 | if err != nil { |
| 23 | return err, nil |
| 24 | } |
| 25 | |
| 26 | tun := &SSHTun{ |
| 27 | SSHSession: s.(*SSHSession), |
| 28 | tunnel: sh.Tunnel, |
| 29 | } |
| 30 | |
| 31 | return tun.start(), tun |
| 32 | } |
| 33 | |
| 34 | func (t *SSHTun) Type() string { |
| 35 | return "ssh.tunnel" |
Callers
nothing calls this directly
Tested by
no test coverage detected