mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
c712fa0814
Signed-off-by: John Howard <jhoward@microsoft.com>
31 lines
597 B
Go
31 lines
597 B
Go
package libcontainer
|
|
|
|
// newConsole returns an initalized console that can be used within a container
|
|
func newConsole(uid, gid int) (Console, error) {
|
|
return &windowsConsole{}, nil
|
|
}
|
|
|
|
// windowsConsole is a Windows psuedo TTY for use within a container.
|
|
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
|
|
}
|