summaryrefslogtreecommitdiff
path: root/execdriver/native/term.go
diff options
context:
space:
mode:
authorunclejack <unclejack@users.noreply.github.com>2014-04-09 01:56:01 +0300
committerunclejack <unclejack@users.noreply.github.com>2014-04-09 01:56:01 +0300
commite128a606e39fa63c6b4fd6e53a1d88cf00aad868 (patch)
tree199ee7eb6678ffecd2ddad95fce794c795ad5183 /execdriver/native/term.go
parent143c9707a9fafc39e1d9747f528db97b2564f01e (diff)
parentdc9c28f51d669d6b09e81c2381f800f1a33bb659 (diff)
downloaddocker-release-0.10.tar.gz
Merge pull request #5079 from unclejack/bump_v0.10.0release-0.100.10.1-hotfixes
Bump version to v0.10.0
Diffstat (limited to 'execdriver/native/term.go')
-rw-r--r--execdriver/native/term.go42
1 files changed, 0 insertions, 42 deletions
diff --git a/execdriver/native/term.go b/execdriver/native/term.go
deleted file mode 100644
index ec69820f75..0000000000
--- a/execdriver/native/term.go
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- These types are wrappers around the libcontainer Terminal interface so that
- we can resuse the docker implementations where possible.
-*/
-package native
-
-import (
- "github.com/dotcloud/docker/execdriver"
- "io"
- "os"
- "os/exec"
-)
-
-type dockerStdTerm struct {
- execdriver.StdConsole
- pipes *execdriver.Pipes
-}
-
-func (d *dockerStdTerm) Attach(cmd *exec.Cmd) error {
- return d.AttachPipes(cmd, d.pipes)
-}
-
-func (d *dockerStdTerm) SetMaster(master *os.File) {
- // do nothing
-}
-
-type dockerTtyTerm struct {
- execdriver.TtyConsole
- pipes *execdriver.Pipes
-}
-
-func (t *dockerTtyTerm) Attach(cmd *exec.Cmd) error {
- go io.Copy(t.pipes.Stdout, t.MasterPty)
- if t.pipes.Stdin != nil {
- go io.Copy(t.MasterPty, t.pipes.Stdin)
- }
- return nil
-}
-
-func (t *dockerTtyTerm) SetMaster(master *os.File) {
- t.MasterPty = master
-}