2015-05-14 06:42:16 +08:00
|
|
|
package libcontainer
|
|
|
|
|
2016-06-03 23:29:34 +08:00
|
|
|
// newConsole returns an initialized console that can be used within a container
|
|
|
|
func newConsole(uid, gid int) (Console, error) {
|
2015-05-14 06:42:16 +08:00
|
|
|
return &windowsConsole{}, nil
|
|
|
|
}
|
|
|
|
|
2016-10-12 07:22:48 +08:00
|
|
|
// windowsConsole is a Windows pseudo TTY for use within a container.
|
2015-05-14 06:42:16 +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
|
|
|
|
}
|