github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/actor/sharedaction/secure_shell_client.go (about)

     1  package sharedaction
     2  
     3  import "code.cloudfoundry.org/cli/util/clissh"
     4  
     5  //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . SecureShellClient
     6  
     7  type SecureShellClient interface {
     8  	Connect(username string, passcode string, sshEndpoint string, sshHostKeyFingerprint string, skipHostValidation bool) error
     9  	Close() error
    10  	InteractiveSession(commands []string, terminalRequest clissh.TTYRequest) error
    11  	LocalPortForward(localPortForwardSpecs []clissh.LocalPortForward) error
    12  	Wait() error
    13  }