{"modulePath":"github.com/cloudfoundry/cli","version":"v7.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package sshCmd\n\n## Types\n\n```go\ntype ListenerFactory interface {\n\tListen(network, address string) (net.Listener, error)\n}\n```\n\n```go\nfunc DefaultListenerFactory() ListenerFactory\n```\n\n```go\ntype SecureClient interface {\n\tNewSession() (SecureSession, error)\n\tConn() ssh.Conn\n\tDial(network, address string) (net.Conn, error)\n\tWait() error\n\tClose() error\n}\n```\n\n```go\ntype SecureDialer interface {\n\tDial(network, address string, config *ssh.ClientConfig) (SecureClient, error)\n}\n```\n\n```go\nfunc DefaultSecureDialer() SecureDialer\n```\n\n```go\ntype SecureSession interface {\n\tRequestPty(term string, height, width int, termModes ssh.TerminalModes) error\n\tSendRequest(name string, wantReply bool, payload []byte) (bool, error)\n\tStdinPipe() (io.WriteCloser, error)\n\tStdoutPipe() (io.Reader, error)\n\tStderrPipe() (io.Reader, error)\n\tStart(command string) error\n\tShell() error\n\tWait() error\n\tClose() error\n}\n```\n\n```go\ntype SecureShell interface {\n\tConnect(opts *options.SSHOptions) error\n\tInteractiveSession() error\n\tLocalPortForward() error\n\tWait() error\n\tClose() error\n}\n```\n\n```go\nfunc NewSecureShell(\n\tsecureDialer SecureDialer,\n\tterminalHelper terminal.TerminalHelper,\n\tlistenerFactory ListenerFactory,\n\tkeepAliveInterval time.Duration,\n\tapp models.Application,\n\tsshEndpointFingerprint string,\n\tsshEndpoint string,\n\ttoken string,\n) SecureShell\n```\n\n","path":"github.com/cloudfoundry/cli/cf/ssh","name":"sshCmd","synopsis":"","isRedistributable":true}
