console_windows.go 597 B

12345678910111213141516171819202122232425262728293031
  1. package libcontainer
  2. // NewConsole returns an initalized console that can be used within a container
  3. func NewConsole(uid, gid int) (Console, error) {
  4. return &windowsConsole{}, nil
  5. }
  6. // windowsConsole is a Windows psuedo TTY for use within a container.
  7. type windowsConsole struct {
  8. }
  9. func (c *windowsConsole) Fd() uintptr {
  10. return 0
  11. }
  12. func (c *windowsConsole) Path() string {
  13. return ""
  14. }
  15. func (c *windowsConsole) Read(b []byte) (int, error) {
  16. return 0, nil
  17. }
  18. func (c *windowsConsole) Write(b []byte) (int, error) {
  19. return 0, nil
  20. }
  21. func (c *windowsConsole) Close() error {
  22. return nil
  23. }