github.com/arunkumar7540/cli@v6.45.0+incompatible/util/clissh/secure_session.go (about)

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