github.com/sleungcy-sap/cli@v7.1.0+incompatible/util/clissh/secure_session.go (about)

     1  package clissh
     2  
     3  import (
     4  	"io"
     5  
     6  	"golang.org/x/crypto/ssh"
     7  )
     8  
     9  //go:generate counterfeiter . SecureSession
    10  
    11  type SecureSession interface {
    12  	RequestPty(term string, height, width int, termModes ssh.TerminalModes) error
    13  	SendRequest(name string, wantReply bool, payload []byte) (bool, error)
    14  	StdinPipe() (io.WriteCloser, error)
    15  	StdoutPipe() (io.Reader, error)
    16  	StderrPipe() (io.Reader, error)
    17  	Start(command string) error
    18  	Shell() error
    19  	Wait() error
    20  	Close() error
    21  }