github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/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 }