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

Method Wait

util/clissh/ssh.go:224–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

222}
223
224func (c *SecureShell) Wait() error {
225 keepaliveStopCh := make(chan struct{})
226 defer close(keepaliveStopCh)
227
228 go keepalive(c.secureClient.Conn(), time.NewTicker(c.keepAliveInterval), keepaliveStopCh)
229
230 return c.secureClient.Wait()
231}
232
233func (c *SecureShell) getWindowDimensions(terminalFd uintptr) (width int, height int) {
234 winSize, err := c.terminalHelper.GetWinsize(terminalFd)

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 3

keepaliveFunction · 0.70
ConnMethod · 0.65
WaitMethod · 0.65

Tested by

no test coverage detected