Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveReconnectableSSH ¶ added in v0.1.0
func ResolveReconnectableSSH(ctx context.Context, profile config.Profile, allowPlaintext, skipHostKeyCheck bool, onStatus func(ssh.StatusEvent)) (*ssh.ReconnectDialer, *errors.XError)
ResolveReconnectableSSH creates an SSH ReconnectDialer for long-lived connections (e.g. the proxy command). It wraps the SSH connection with automatic keepalive monitoring and reconnection on failure.
Types ¶
type App ¶
func (App) VersionInfo ¶
func (a App) VersionInfo() VersionInfo
type Connection ¶ added in v0.0.9
type Connection struct {
DB *sql.DB
SSHClient *ssh.Client
Profile config.Profile
// contains filtered or unexported fields
}
func ResolveConnection ¶ added in v0.0.9
func ResolveConnection(ctx context.Context, opts ConnectionOptions) (*Connection, *errors.XError)
func (*Connection) Close ¶ added in v0.0.9
func (c *Connection) Close() error
type ConnectionOptions ¶ added in v0.0.9
type VersionInfo ¶
Click to show internal directories.
Click to hide internal directories.