MCPcopy
hub / github.com/cloudfoundry/cli / Wait

Method Wait

cf/ssh/ssh.go:316–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314}
315
316func (c *secureShell) Wait() error {
317 keepaliveStopCh := make(chan struct{})
318 defer close(keepaliveStopCh)
319
320 go keepalive(c.secureClient.Conn(), time.NewTicker(c.keepAliveInterval), keepaliveStopCh)
321
322 return c.secureClient.Wait()
323}
324
325func (c *secureShell) validateTarget(opts *options.SSHOptions) error {
326 if strings.ToUpper(c.app.State) != "STARTED" {

Callers

nothing calls this directly

Calls 3

keepaliveFunction · 0.70
ConnMethod · 0.65
WaitMethod · 0.65

Tested by

no test coverage detected