moby--moby/container/stream
Brian Goff 6380e3d939 Refactor attaches `copyEscapable`
`copyEscapable` is a copy/paste of io.Copy with some added handling for
checking for the attach escape sequence.

This removes the copy/paste and uses `io.Copy` directly. To be able to
do this, it now implements an `io.Reader` which proxies to the main
reader but looks for the escape sequence.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2017-01-23 09:09:59 -05:00
..
attach.go Refactor attaches `copyEscapable` 2017-01-23 09:09:59 -05:00
streams.go Move attach code to stream package 2017-01-23 09:09:57 -05:00