github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/mergeCode/runc/libcontainer/console_windows.go (about)

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