summaryrefslogtreecommitdiff
path: root/vendor/github.com/opencontainers/runc/libcontainer/console.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/opencontainers/runc/libcontainer/console.go')
-rw-r--r--vendor/github.com/opencontainers/runc/libcontainer/console.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/console.go b/vendor/github.com/opencontainers/runc/libcontainer/console.go
new file mode 100644
index 000000000..917acc702
--- /dev/null
+++ b/vendor/github.com/opencontainers/runc/libcontainer/console.go
@@ -0,0 +1,17 @@
+package libcontainer
+
+import (
+ "io"
+ "os"
+)
+
+// Console represents a pseudo TTY.
+type Console interface {
+ io.ReadWriteCloser
+
+ // Path returns the filesystem path to the slave side of the pty.
+ Path() string
+
+ // Fd returns the fd for the master of the pty.
+ File() *os.File
+}