MCPcopy Index your code
hub / github.com/cloudfoundry/cli / LocalPortForward

Method LocalPortForward

util/clissh/ssh.go:210–222  ·  view source on GitHub ↗
(localPortForwardSpecs []LocalPortForward)

Source from the content-addressed store, hash-verified

208}
209
210func (c *SecureShell) LocalPortForward(localPortForwardSpecs []LocalPortForward) error {
211 for _, spec := range localPortForwardSpecs {
212 listener, err := c.listenerFactory.Listen("tcp", spec.LocalAddress)
213 if err != nil {
214 return err
215 }
216 c.localListeners = append(c.localListeners, listener)
217
218 go c.localForwardAcceptLoop(listener, spec.RemoteAddress)
219 }
220
221 return nil
222}
223
224func (c *SecureShell) Wait() error {
225 keepaliveStopCh := make(chan struct{})

Callers

nothing calls this directly

Implementers 4

secureShellcf/ssh/ssh.go
FakeSecureShellcf/ssh/sshfakes/fake_secure_shell.go
FakeSecureShellClientactor/sharedaction/sharedactionfakes/f
SecureShellutil/clissh/ssh.go

Calls 2

ListenMethod · 0.65

Tested by

no test coverage detected