2015-10-22 20:41:54 +00:00
|
|
|
package libcontainer
|
|
|
|
|
2016-01-06 23:36:48 +00:00
|
|
|
// NewConsole returns an initalized console that can be used within a container
|
|
|
|
func NewConsole(uid, gid int) (Console, error) {
|
2015-10-22 20:41:54 +00:00
|
|
|
return &windowsConsole{}, nil
|
|
|
|
}
|
|
|
|
|
2017-04-26 18:26:41 +00:00
|
|
|
// windowsConsole is a Windows pseudo TTY for use within a container.
|
2015-10-22 20:41:54 +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
|
|
|
|
}
|