bump vendor for containerd/console update
Signed-off-by: Daniel Dao <dqminh89@gmail.com>
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| github.com/coreos/go-systemd 48702e0da86bd25e76cfef347e2adeb434a0d0a6 | ||||
| github.com/containerd/go-runc 2774a2ea124a5c2d0aba13b5c2dd8a5a9a48775d | ||||
| github.com/containerd/console 7fed77e673ca4abcd0cbd6d4d0e0e22137cbd778 | ||||
| github.com/containerd/console 2ce1c681f3c3c0dfa7d0af289428d36567c9a6bc | ||||
| github.com/containerd/cgroups 4fd64a776f25b5540cddcb72eea6e35e58baca6e | ||||
| github.com/docker/go-metrics 8fd5772bf1584597834c6f7961a530f06cbfbb87 | ||||
| github.com/docker/go-events 9461782956ad83b30282bf90e31fa6a70c255ba9 | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/github.com/containerd/console/console.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/containerd/console/console.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -28,6 +28,8 @@ type Console interface { | ||||
| 	Size() (WinSize, error) | ||||
| 	// Fd returns the console's file descriptor | ||||
| 	Fd() uintptr | ||||
| 	// Name returns the console's file name | ||||
| 	Name() string | ||||
| } | ||||
|  | ||||
| // WinSize specifies the window size of the console | ||||
|   | ||||
							
								
								
									
										1
									
								
								vendor/github.com/containerd/console/console_linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/github.com/containerd/console/console_linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,4 +1,5 @@ | ||||
| // +build linux | ||||
|  | ||||
| package console | ||||
|  | ||||
| import ( | ||||
|   | ||||
							
								
								
									
										13
									
								
								vendor/github.com/containerd/console/console_unix.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								vendor/github.com/containerd/console/console_unix.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -118,6 +118,10 @@ func (m *master) Fd() uintptr { | ||||
| 	return m.f.Fd() | ||||
| } | ||||
|  | ||||
| func (m *master) Name() string { | ||||
| 	return m.f.Name() | ||||
| } | ||||
|  | ||||
| // checkConsole checks if the provided file is a console | ||||
| func checkConsole(f *os.File) error { | ||||
| 	var termios unix.Termios | ||||
| @@ -132,3 +136,12 @@ func newMaster(f *os.File) Console { | ||||
| 		f: f, | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // SaneTerminal sets the necessary tty_ioctl(4)s to ensure that a pty pair | ||||
| // created by us acts normally. In particular, a not-very-well-known default of | ||||
| // Linux unix98 ptys is that they have +onlcr by default. While this isn't a | ||||
| // problem for terminal emulators, because we relay data from the terminal we | ||||
| // also relay that funky line discipline. | ||||
| func SaneTerminal(f *os.File) error { | ||||
| 	return saneTerminal(f) | ||||
| } | ||||
|   | ||||
							
								
								
									
										7
									
								
								vendor/github.com/containerd/console/console_windows.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								vendor/github.com/containerd/console/console_windows.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -154,6 +154,13 @@ func (m *master) Fd() uintptr { | ||||
| 	return m.in | ||||
| } | ||||
|  | ||||
| // on windows, console can only be made from os.Std{in,out,err}, hence there | ||||
| // isnt a single name here we can use. Return a dummy "console" value in this | ||||
| // case should be sufficient. | ||||
| func (m *master) Name() string { | ||||
| 	return "console" | ||||
| } | ||||
|  | ||||
| // makeInputRaw puts the terminal (Windows Console) connected to the given | ||||
| // file descriptor into raw mode | ||||
| func makeInputRaw(fd uintptr, mode uint32) error { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Dao
					Daniel Dao