2017-02-01 00:45:59 +00:00
|
|
|
package libcontainer
|
|
|
|
|
2017-02-06 20:16:36 +00:00
|
|
|
// newConsole returns an initialized console that can be used within a container
|
|
|
|
func newConsole() (Console, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
return &windowsConsole{}, nil
|
|
|
|
}
|
|
|
|
|
2017-02-06 20:16:36 +00:00
|
|
|
// windowsConsole is a Windows pseudo TTY for use within a container.
|
2017-02-01 00:45:59 +00: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
|
|
|
|
}
|