Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListenerFactory ¶
type ListenerFactory interface {
Listen(network, address string) (net.Listener, error)
}
func DefaultListenerFactory ¶
func DefaultListenerFactory() ListenerFactory
type SecureClient ¶
type SecureClient interface {
NewSession() (SecureSession, error)
Conn() ssh.Conn
Dial(network, address string) (net.Conn, error)
Wait() error
Close() error
}
type SecureDialer ¶
type SecureDialer interface {
Dial(network, address string, config *ssh.ClientConfig) (SecureClient, error)
}
func DefaultSecureDialer ¶
func DefaultSecureDialer() SecureDialer
type SecureSession ¶
type SecureSession interface {
RequestPty(term string, height, width int, termModes ssh.TerminalModes) error
SendRequest(name string, wantReply bool, payload []byte) (bool, error)
StdinPipe() (io.WriteCloser, error)
StdoutPipe() (io.Reader, error)
StderrPipe() (io.Reader, error)
Start(command string) error
Shell() error
Wait() error
Close() error
}
type SecureShell ¶
type SecureShell interface {
Connect(opts *options.SSHOptions) error
InteractiveSession() error
LocalPortForward() error
Wait() error
Close() error
}
func NewSecureShell ¶
func NewSecureShell(
secureDialer SecureDialer,
terminalHelper terminal.TerminalHelper,
listenerFactory ListenerFactory,
keepAliveInterval time.Duration,
app models.Application,
sshEndpointFingerprint string,
sshEndpoint string,
token string,
) SecureShell
Directories
¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
terminalfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.