2017-01-31 16:45:59 -08:00
|
|
|
package libcontainer
|
|
|
|
|
2017-02-06 21:16:36 +01:00
|
|
|
// newConsole returns an initialized console that can be used within a container
|
|
|
|
func newConsole() (Console, error) {
|
2017-01-31 16:45:59 -08:00
|
|
|
return &windowsConsole{}, nil
|
|
|
|
}
|
|
|
|
|
2017-02-06 21:16:36 +01:00
|
|
|
// windowsConsole is a Windows pseudo TTY for use within a container.
|
2017-01-31 16:45:59 -08:00
|
|
|
type windowsConsole struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *windowsConsole) Fd() uintptr {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *windowsConsole) Path() string {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *windowsConsole) Read(b []byte) (int, error) {
|
|
|
|
return 0, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *windowsConsole) Write(b []byte) (int, error) {
|
|
|
|
return 0, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *windowsConsole) Close() error {
|
|
|
|
return nil
|
|
|
|
}
|