Versions in this module Expand all Collapse all v8 v8.4.4 Aug 24, 2022 v8.4.3 Aug 24, 2022 Changes in this version + const DefaultKeepAliveInterval + func DefaultListenerFactory() listenerFactory + func DefaultSecureDialer() secureDialer + func DefaultTerminalHelper() terminalHelper + type ListenerFactory interface + Listen func(network, address string) (net.Listener, error) + type LocalPortForward struct + LocalAddress string + RemoteAddress string + type SecureClient interface + Close func() error + Conn func() ssh.Conn + Dial func(network, address string) (net.Conn, error) + NewSession func() (SecureSession, error) + Wait func() error + type SecureDialer interface + Dial func(network, address string, config *ssh.ClientConfig) (SecureClient, error) + type SecureSession interface + Close func() error + RequestPty func(term string, height, width int, termModes ssh.TerminalModes) error + SendRequest func(name string, wantReply bool, payload []byte) (bool, error) + Shell func() error + Start func(command string) error + StderrPipe func() (io.Reader, error) + StdinPipe func() (io.WriteCloser, error) + StdoutPipe func() (io.Reader, error) + Wait func() error + type SecureShell struct + func NewDefaultSecureShell() *SecureShell + func NewSecureShell(secureDialer SecureDialer, terminalHelper TerminalHelper, ...) *SecureShell + func (c *SecureShell) Close() error + func (c *SecureShell) Connect(username string, passcode string, appSSHEndpoint string, ...) error + func (c *SecureShell) InteractiveSession(commands []string, terminalRequest TTYRequest) error + func (c *SecureShell) LocalPortForward(localPortForwardSpecs []LocalPortForward) error + func (c *SecureShell) Wait() error + type TTYRequest int + const RequestTTYAuto + const RequestTTYForce + const RequestTTYNo + const RequestTTYYes + type TerminalHelper interface + GetFdInfo func(in interface{}) (fd uintptr, isTerminal bool) + GetWinsize func(fd uintptr) (*term.Winsize, error) + RestoreTerminal func(fd uintptr, state *term.State) error + SetRawTerminal func(fd uintptr) (*term.State, error) + StdStreams func() (stdin io.ReadCloser, stdout io.Writer, stderr io.Writer) Other modules containing this package github.com/LukasHeimann/cloudfoundrycli