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

Function copyAndDone

util/clissh/ssh.go:355–361  ·  view source on GitHub ↗
(wg *sync.WaitGroup, dest io.Writer, src io.Reader)

Source from the content-addressed store, hash-verified

353}
354
355func copyAndDone(wg *sync.WaitGroup, dest io.Writer, src io.Reader) {
356 _, err := io.Copy(dest, src)
357 if err != nil {
358 log.Errorln("copy and done:", err)
359 }
360 wg.Done()
361}
362
363func fingerprintCallback(skipHostValidation bool, expectedFingerprint string) ssh.HostKeyCallback {
364 return func(hostname string, remote net.Addr, key ssh.PublicKey) error {

Callers 1

InteractiveSessionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected