github.com/gondor/docker@v1.9.0-rc1/daemon/execdriver/windows/stdconsole.go (about)

     1  // +build windows
     2  
     3  package windows
     4  
     5  // StdConsole is for when using a container non-interactively
     6  type StdConsole struct {
     7  }
     8  
     9  // NewStdConsole returns a new StdConsole struct.
    10  func NewStdConsole() *StdConsole {
    11  	return &StdConsole{}
    12  }
    13  
    14  // Resize implements Resize method of Terminal interface.
    15  func (s *StdConsole) Resize(h, w int) error {
    16  	// we do not need to resize a non tty
    17  	return nil
    18  }
    19  
    20  // Close implements Close method of Terminal interface.
    21  func (s *StdConsole) Close() error {
    22  	// nothing to close here
    23  	return nil
    24  }